Re[2]: DROP SEQUENCE ?

From: Mihail Marinov <liahim(at)bcci(dot)bg>
To: pgsql-general(at)postgresql(dot)org
Subject: Re[2]: DROP SEQUENCE ?
Date: 2001-01-07 09:09:03
Message-ID: 1562980365.20010107110903@bcci.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Denis Perchine 2001-01-07 11:02:15 Re: Problems with order by, limit, and indices
Previous Message Mihail Marinov 2001-01-07 09:04:59 Re[2]: DROP SEQUENCE ?