Re: Dropping tables

From: Ron Peterson <rpeterson(at)yellowbank(dot)com>
To: Hrvoje Niksic <hniksic(at)iskon(dot)hr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dropping tables
Date: 2000-06-14 19:49:51
Message-ID: 3947E1DF.BF4D2364@yellowbank.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hrvoje Niksic wrote:
>
> DROP TABLE does not seem to allow me to fully drop a table. Example:
>
> test=# CREATE TABLE x (id SERIAL);
> NOTICE: CREATE TABLE will create implicit sequence 'x_id_seq' for SERIAL column 'x.id'
> NOTICE: CREATE TABLE/UNIQUE will create implicit index 'x_id_key' for table 'x'CREATE
>
> Huh? What is this? Oh, x_id_key somehow survived DROP TABLE.
> Bummer. Maybe I can use DROP INDEX to drop it?

Close. Try DROP SEQUENCE.

________________________
Ron Peterson
rpeterson(at)yellowbank(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeffery Collins 2000-06-14 19:51:07 Very large table...
Previous Message Hrvoje Niksic 2000-06-14 19:33:52 Dropping tables