Re: Dropping tables

Поиск
Список
Период
Сортировка
От Ron Peterson
Тема Re: Dropping tables
Дата
Msg-id 3947E1DF.BF4D2364@yellowbank.com
обсуждение исходный текст
Ответ на Dropping tables  (Hrvoje Niksic <hniksic@iskon.hr>)
Список 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@yellowbank.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Hrvoje Niksic
Дата:
Сообщение: Dropping tables
Следующее
От: Charles Tassell
Дата:
Сообщение: Re: PostgreSQL and multiple database access