pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rene Pijlman <reageer.in.de.nieuwsgroep@onzin-adres.nl>
To: pgsql-admin@postgresql.org
Subject: Re: changes sequences to unique
Date: Wed, 06 Jun 2001 23:10:48 +0200
Message-ID: <907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.com> (raw)
References: <5.1.0.14.0.20010606220524.00afd020@pop.crosswinds.net>

schweinsaug@crosswinds.net (Stefan Huber) schreef:
>>Huh?  nextval() should always produce unique values (unless the sequence
>>wraps around, of course).
>
>What about explicitly overruling a sequence by INSERTing a specific value, 
>when it is not a primary key or defined as serial, but a manual sequence?

Then the sequence will still produce unique values. Its just the
database column that contains a duplicate :-)

-- 
Vriendelijke groet,
René Pijlman <rpijlman@spamcop.net>

Wat wil jij leren?
http://www.leren.nl/



view thread (7+ messages)

Message-ID: <907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.com>
Permalink:  ../907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.com/
Also on:    postgresql.org/message-id/907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: reageer.in.de.nieuwsgroep@onzin-adres.nl
  Subject: Re: changes sequences to unique
  In-Reply-To: <907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.com>
  References: <5.1.0.14.0.20010606220524.00afd020@pop.crosswinds.net> <907tht4vrv0bp2eiqfp3a1hk46gco33pkr@4ax.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