+
+
+
The type names serial and serial4 are
equivalent: both create integer columns. The type
- names bigserial and serial8 works just
- the same way, except that it creates a bigint
- column. serial8 should be used if you anticipate
+ names bigserial and serial8 work just
+ the same way, except that they create a bigint
+ column. bigserial should be used if you anticipate
use of more than 2^31 identifiers over the lifetime of the table.
- Implicit sequences supporting the serial are
+ Implicit sequences supporting the serial types are
not automatically dropped when a table containing a serial type
is dropped. So, the following commands executed in order will likely fail:
The sequence will remain in the database until explicitly dropped using
- DROP SEQUENCE.
+ DROP SEQUENCE. (This annoyance will probably be
+ changed in some future release.)