X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E1396528E7 for ; Sat, 28 May 2005 23:08:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05237-02 for ; Sun, 29 May 2005 02:08:20 +0000 (GMT) Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 7880552B42 for ; Sat, 28 May 2005 23:05:47 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.197.194]) by svr2.postgresql.org (Postfix) with SMTP id F2FD0F0DEA for ; Sat, 28 May 2005 21:53:27 +0100 (BST) Received: (qmail 20367 invoked by uid 500); 28 May 2005 20:54:50 -0000 Date: Sat, 28 May 2005 15:54:50 -0500 From: Bruno Wolff III To: David Pratt Cc: pgsql-admin@postgresql.org Subject: Re: Adding Serial Type Message-ID: <20050528205450.GB20085@wolff.to> Mail-Followup-To: Bruno Wolff III , David Pratt , pgsql-admin@postgresql.org References: <20050528182754.GA11909@wolff.to> <46D712FF-CFAD-11D9-AEE7-000A27B3B070@eastlink.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46D712FF-CFAD-11D9-AEE7-000A27B3B070@eastlink.ca> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/291 X-Sequence-Number: 17720 On Sat, May 28, 2005 at 16:18:30 -0300, David Pratt wrote: > > Serial should always give me an incremented value that's different so I > am assuming it is unnecessary to use UNIQUE. Am I correct? Unless someone uses setval to lower the value or if you change the configuration of the sequence to allow it to wrap around.