Sizes of sequences and serials

From: elein <elein(at)sbcglobal(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: elein <elein(at)norcov(dot)com>
Subject: Sizes of sequences and serials
Date: 2002-09-26 23:44:45
Message-ID: 200209262344.g8QNiX0N256274@pimout4-ext.prodigy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


According to the documentation, it looks like sequences
are always stored as bigints (if the platform supports them).

Serials, though, seem to be able to be declared as serial
with integer storage or serial8 for bigint storage.

Is the storage for ordinary serials really an int and not
a big int? Is there a way to create a sequence stored
as an int instead of a big int? For example by setting
the maximun size?

thanks,
elein(at)norcov(dot)com

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-09-26 23:46:07 Re: SQL subquery to supply table name?
Previous Message Scott Chapman 2002-09-26 23:42:07 Re: SQL subquery to supply table name?