Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8F5571337B58 for ; Mon, 3 Jan 2011 15:11:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 36419-03 for ; Mon, 3 Jan 2011 19:11:16 +0000 (UTC) X-Greylist: delayed 00:06:53.092397 by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id F00A91337B64 for ; Mon, 3 Jan 2011 15:11:15 -0400 (AST) Received: by fxm20 with SMTP id 20so13466188fxm.19 for ; Mon, 03 Jan 2011 11:11:15 -0800 (PST) Received: by 10.223.113.73 with SMTP id z9mr1998412fap.41.1294081461550; Mon, 03 Jan 2011 11:04:21 -0800 (PST) Received: from [10.10.3.129] (71-6-94-66.static-ip.telepacific.net [71.6.94.66]) by mx.google.com with ESMTPS id f24sm4859583fak.0.2011.01.03.11.04.18 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 11:04:20 -0800 (PST) Subject: Re: BUG #5809: bigserial duplicate value From: Jeff Davis To: mahmoud elzaiady Cc: pgsql-bugs@postgresql.org In-Reply-To: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> Content-Type: text/plain; charset="ISO-8859-1" Date: Mon, 03 Jan 2011 11:04:17 -0800 Message-ID: <1294081457.22634.8.camel@jdavis-ux.asterdata.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201101/8 X-Sequence-Number: 29030 On Sun, 2011-01-02 at 11:40 +0000, mahmoud elzaiady wrote: > The following bug has been logged online: > > Bug reference: 5809 > Logged by: mahmoud elzaiady > Email address: melzaiady@yahoo.co.uk > PostgreSQL version: 8.4 > Operating system: windows xp > Description: bigserial duplicate value > Details: > > I have problem today > i have table and colum type bigserial > and insert data automatic number > but i found the value duplicate > i ask ,bigserial must not duplicate the value ? > how solve this problem This is probably due to the sequence being reset somehow. Have you dumped/reloaded recently? Did you manually back up or copy the table? What is the exact error message that you see? If it tells you the duplicated value, is it very old, perhaps 1 (indicating a reset of the sequence)? Note that, by "reset", I do not mean "overflow". I mean that the sequence might have been recreated somehow. Try to provide more detail in your bug report. See: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems Regards, Jeff Davis