pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raymond Pau <rpau@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: How to make sequence skip existing key in table?
Date: Tue, 18 Feb 2003 02:01:34 -0800 (PST)
Message-ID: <20030218100134.91784.qmail@web14204.mail.yahoo.com> (raw)
In-Reply-To: <3E51F36A.75F42D3@rodos.fzk.de>

Hi List,

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?

Regards,

Raymond Pau

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



view thread (4+ messages)  latest in thread

Message-ID: <20030218100134.91784.qmail@web14204.mail.yahoo.com>
Permalink:  ../20030218100134.91784.qmail@web14204.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030218100134.91784.qmail@web14204.mail.yahoo.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: rpau@yahoo.com
  Subject: Re: How to make sequence skip existing key in table?
  In-Reply-To: <20030218100134.91784.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