Re[2]: DROP SEQUENCE ? - Mailing list pgsql-general

From Mihail Marinov
Subject Re[2]: DROP SEQUENCE ?
Date
Msg-id 1562980365.20010107110903@bcci.bg
Whole thread Raw
In response to Re: DROP SEQUENCE ?  ("Ian deSouza" <iandesouza@earthlink.net>)
List pgsql-general
Id> Figure it out:

metamousetrap=>> create table my_table (first serial, second varchar);
Id> NOTICE:  CREATE TABLE will create implicit sequence 'my_table_first_seq' for SERIAL column 'my_table.first'
Id> NOTICE:  CREATE TABLE/UNIQUE will create implicit index 'my_table_first_key' for table 'my_table'
Id> CREATE
metamousetrap=>> drop table my_table;
Id> DROP
metamousetrap=>> drop sequence my_table_first_seq;
Id> DROP

Id> Anyone know how to list what sequences already exist?

Id> Thanks, Ian

\ds would do.



pgsql-general by date:

Previous
From: Mihail Marinov
Date:
Subject: Re[2]: DROP SEQUENCE ?
Next
From: Denis Perchine
Date:
Subject: Re: Problems with order by, limit, and indices