Re: IS it a good practice to use SERIAL as Primary Key? - Mailing list pgsql-general

From Tom Lane
Subject Re: IS it a good practice to use SERIAL as Primary Key?
Date
Msg-id 7316.1164249190@sss.pgh.pa.us
Whole thread Raw
In response to IS it a good practice to use SERIAL as Primary Key?  ("carter ck" <carterck32@hotmail.com>)
List pgsql-general
"carter ck" <carterck32@hotmail.com> writes:
> I am wonderring if it is a good practice to use SERIAL index as primary key,
> as it is only available up to 9999999?

Where in the world did you get that idea?

SERIAL goes up to 2^31 (2 billion); if you need more use BIGSERIAL.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.2Beta3 - create view testview (a,b,c) values (1,2,3),(4,5,6),...
Next
From: Richard Broersma Jr
Date:
Subject: Re: IS it a good practice to use SERIAL as Primary Key?