pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Raymond Pau <rpau@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to make sequence skip existing key in table?
Date: Tue, 18 Feb 2003 09:07:21 -0800
Message-ID: <200302180907.21014.josh@agliodbs.com> (raw)
In-Reply-To: <20030218100134.91784.qmail@web14204.mail.yahoo.com>
References: <20030218100134.91784.qmail@web14204.mail.yahoo.com>

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?

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (4+ messages)  latest in thread

Message-ID: <200302180907.21014.josh@agliodbs.com>
Permalink:  ../200302180907.21014.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200302180907.21014.josh@agliodbs.com

 · 

reply

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: josh@agliodbs.com, rpau@yahoo.com
  Subject: Re: How to make sequence skip existing key in table?
  In-Reply-To: <200302180907.21014.josh@agliodbs.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