Re: IS it a good practice to use SERIAL as Primary Key?

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Jorge Godoy <jgodoy(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: IS it a good practice to use SERIAL as Primary Key?
Date: 2006-11-23 15:09:13
Message-ID: 20061123150913.5238.qmail@web31811.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > "" The type names serial and serial4 are equivalent: both create integer
> > columns. The type names bigserial and serial8 work just the same way, except
> > that they create a bigint column. bigserial should be used if you anticipate
> > the use of more than 231 identifiers over the lifetime of the table. ""
> > http://www.postgresql.org/docs/8.2/interactive/datatype-numeric.html#DATATYPE-SERIAL
>
> What would be those "231 identifiers"?

oops, when I copied that text from the 8.2 docs I didn't catch that format error.

231 should read 2^31.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Jurd 2006-11-23 15:26:22 Re: ISO week dates
Previous Message Kevin Field 2006-11-23 14:58:50 Re: OID Perfomance - Object-Relational databases