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 21:30:10 +0200
Message-ID: <8q0tht0rdvmmhgtcjb3da55p79hughfn3k@4ax.com> (raw)
References: <3B1E7367.7000503@greatgeek.com>

dave@greatgeek.com (Dave Stokes) schreef:
>I have a sequence that I 'thought' was providing unique numbers but is 
>not. Is there someway to turn on unique-ness?  

Sequences are documented on 
http://www.postgresql.org/users-lounge/docs/7.1/reference/sql-createsequence.html

The numbers may not be unique if:
- there are already values in the column that conflict with numbers
(to be) generated by the sequence
- it was created with "cycle" and it cycles
- values are inserted into the column that have not been generated by
the sequence
- there is more than one sequence inserting values into the column
- there is a trigger that interferes
- ...

>Should I reload after adding unique to the sequence?  

I'm not sure what you mean by that.

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

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



view thread (7+ messages)  latest in thread

Message-ID: <8q0tht0rdvmmhgtcjb3da55p79hughfn3k@4ax.com>
Permalink:  ../8q0tht0rdvmmhgtcjb3da55p79hughfn3k@4ax.com/
Also on:    postgresql.org/message-id/8q0tht0rdvmmhgtcjb3da55p79hughfn3k@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: <8q0tht0rdvmmhgtcjb3da55p79hughfn3k@4ax.com>
  References: <3B1E7367.7000503@greatgeek.com> <8q0tht0rdvmmhgtcjb3da55p79hughfn3k@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