From: Raymond Pau <rpau@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to make sequence skip existing key in table?
Date: Thu, 20 Feb 2003 22:29:22 -0800 (PST)
Message-ID: <20030221062922.30510.qmail@web14204.mail.yahoo.com> (raw)
In-Reply-To: <200302180907.21014.josh@agliodbs.com>
--- Josh Berkus <josh@agliodbs.com> wrote:
> Raymond,
>
> > I am using sequence to generate to a list of
> unique
> > key id that will be used as the primary key for
> some
> > tables.
> >
> > My question is when the sequence wraps over to the
> > minimum value(1), how can I ensure that the next
> id is
> > not in the tables?
>
> Do you really expect more than 2.4 billion rows?
No, not really.
I guess my worries are groundless after all.
Thanks.
>
> --
> Josh Berkus
> Aglio Database Solutions
> San Francisco
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rpau@yahoo.com
Subject: Re: How to make sequence skip existing key in table?
In-Reply-To: <20030221062922.30510.qmail@web14204.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox