Re: Sequences and inheritance - Mailing list pgsql-general

From Tom Lane
Subject Re: Sequences and inheritance
Date
Msg-id 10757.996591208@sss.pgh.pa.us
Whole thread Raw
In response to Sequences and inheritance  (Bruce Richardson <brichardson@lineone.net>)
List pgsql-general
Bruce Richardson <brichardson@lineone.net> writes:
> If I have a set of tables and I set their primary keys all to the same
> sequence, as in
> ...
> Would this guarantee that each value of ID in any row of any of the
> tables would be unique amongst all of them?

As long as the sequence doesn't wrap around, yes.

IIRC, you can set up a sequence to error out rather than wrap when
it hits the max...

            regards, tom lane

pgsql-general by date:

Previous
From: Joel Burton
Date:
Subject: Re: ODBC read/write permission in MS Access
Next
From: wsheldah@lexmark.com
Date:
Subject: Re: ODBC read/write permission in MS Access