[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Re: [GENERAL] Sequences and inheritance
From: Tom Lane <tgl () sss ! pgh ! pa ! us>
Date: 2001-07-31 14:53:28
[Download RAW message or body]
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
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic