dbTalk Databases Forums  

Serial datatype clarification

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Serial datatype clarification in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pradeepkumar, Pyatalo
 
Posts: n/a

Default Serial datatype clarification - 09-13-2004 , 11:36 PM






Hi,
I just wanted to clarify as to what is the maximum value of a SERIAL
datatype. In the documentation it is given that with BIGSERIAL it is
possible to generate 2pow(31) identifiers. What is the maximum value of a
SERIAL datatype, and what would happen if I insert a record after the
maximum value is reached.

With Best Regards
Pradeep Kumar P J




Reply With Quote
  #2  
Old   
Josh Berkus
 
Posts: n/a

Default Re: Serial datatype clarification - 09-14-2004 , 06:07 PM






Pradeep,

Quote:
I just wanted to clarify as to what is the maximum value of a
SERIAL datatype. In the documentation it is given that with BIGSERIAL it is
possible to generate 2pow(31) identifiers.
Nope, that would be regular SERIAL. BIGSSERIAL is 2^62 or so.

Quote:
What is the maximum value of a
SERIAL datatype, and what would happen if I insert a record after the
maximum value is reached.
You'd get an error. A SERIAL field is just an INT field; it's not going to
accept out-of-range values.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.