Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5BDcXE81198 for ; Mon, 11 Jun 2001 09:38:33 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f56JwcE06830 for ; Wed, 6 Jun 2001 15:58:38 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f56JTcY06728 for pgsql-admin@postgresql.org; Wed, 6 Jun 2001 15:29:38 -0400 (EDT) (envelope-from news) From: Rene Pijlman X-Newsgroups: comp.databases.postgresql.admin Subject: Re: changes sequences to unique Date: Wed, 06 Jun 2001 21:30:10 +0200 Organization: XS4ALL Internet BV Lines: 27 Message-ID: <8q0tht0rdvmmhgtcjb3da55p79hughfn3k@4ax.com> References: <3B1E7367.7000503@greatgeek.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@xs4all.nl X-Newsreader: Forte Agent 1.7/32.534 To: pgsql-admin@postgresql.org X-Archive-Number: 200106/61 X-Sequence-Number: 1604 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 Wat wil jij leren? http://www.leren.nl/