Re: [HACKERS] DROPping tables with SERIALs - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] DROPping tables with SERIALs
Date
Msg-id 199812130349.WAA13066@candle.pha.pa.us
Whole thread Raw
In response to DROPping tables with SERIALs  (Jan Iven <j.iven@rz.uni-sb.de>)
List pgsql-hackers
> Hi,
> 
> I have run into a problem dropping and re-creating tables with
> type SERIAL:
> 
> CREATE TABLE t ( s SERIAL);
> DROP TABLE t;
> CREATE TABLE t ( s SERIAL);
> 
> gives
> ERROR:  t_s_seq relation already exists
> 
> This looks like the implicitly created sequence t_s_seq is not dropped
> together with the table.
> 
> I am running a current (?) cvs snapshot from anoncvs@postgresql.org.

Added to TODO:* auto-destroy sequence on SERIAL removal


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: memory leak with Abort Transaction
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] ecpg man page