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

From Bruce Momjian
Subject Re: [HACKERS] DROPping tables with SERIALs
Date
Msg-id 199812020121.UAA08410@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] DROPping tables with SERIALs  (Vadim Mikheev <vadim@krs.ru>)
List pgsql-hackers
> The SERIAL data type is not automatically a unique column. 
> You must apply a unique index to this column to prevent 
> duplicate serial numbers. If you use the interactive schema 
> editor in DB-Access to define the table, a unique index is 
> applied automatically to a SERIAL column.
> 
> http://www.informix.com/answers/english/pdf_docs/gn7382/4366.pdf
> 
> You can specify a nonzero value for a serial column 
> (as long as it does not duplicate any existing value in that column), ...
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> ?!!!

You can assign a value to a serial column, as long as it is unique.


--  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] New platform-specific FAQ for HPUX
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] sbufdesc' padding...