Sizes of sequences and serials (fwd) - Mailing list pgsql-general

From Elein Mustain
Subject Sizes of sequences and serials (fwd)
Date
Msg-id 200209270109.g8R19Rgj013849@tulip.norcov.com
Whole thread Raw
List 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@norcov.com



pgsql-general by date:

Previous
From: "Peter Kovacs"
Date:
Subject: Re: [JDBC] Prepared statement performance...
Next
From: Andriy Tkachuk
Date:
Subject: Re: query speed depends on lifetime of frozen db?