Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1520E1337B39 for ; Tue, 4 Jan 2011 12:35:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 37578-09 for ; Tue, 4 Jan 2011 16:35:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id 6A29F1337B53 for ; Tue, 4 Jan 2011 12:35:29 -0400 (AST) Received: by gwj20 with SMTP id 20so6583124gwj.19 for ; Tue, 04 Jan 2011 08:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=BVX673bEQUtm3qR28XOsP/TyWrWMpCL59/Jr9Q/Jvgg=; b=l2QmpMuVPAh8mjikDO9/2vgP1NXobTtHvZXnUVzAEldU4fu8EkmD2btJAbD4f10tnx A5ilAY1Wz3tjhJTLhZtY+RPfeby5pt2En0uFAUf0pzNx89QrjARfw2QdiWu/Er5VOlKH LlanwZeNIOYGMZaAi5UBJwRl2Cuwmz63Pw6vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=hwv89rdTWiMKUaFfCc2fqk3BR3Ca3Z5y3ELILmmC5CXa8LwgR2YvrZN/+wKMsTenyq ioPOT7gtxR0a4JID65H60ZpRYixiccwVgbr9Aka8q8iBaF6Kuu7GN+YREpcrwegHxH2z IEp0Qv2y2kpqGeAfRvAU0Ayq+NvDRijDjQOPI= Received: by 10.151.156.12 with SMTP id i12mr20221741ybo.135.1294158927486; Tue, 04 Jan 2011 08:35:27 -0800 (PST) Received: from eddie (c-67-186-249-122.hsd1.ut.comcast.net [67.186.249.122]) by mx.google.com with ESMTPS id v8sm13159257yhg.40.2011.01.04.08.35.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 Jan 2011 08:35:24 -0800 (PST) Message-ID: <4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com> Date: Tue, 4 Jan 2011 09:34:57 -0700 From: Joshua Tolley To: Jeff Davis Cc: mahmoud elzaiady , pgsql-bugs@postgresql.org Subject: Re: BUG #5809: bigserial duplicate value References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> <1294081457.22634.8.camel@jdavis-ux.asterdata.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QWRRbczYj8mXuejp" Content-Disposition: inline In-Reply-To: <1294081457.22634.8.camel@jdavis-ux.asterdata.local> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201101/10 X-Sequence-Number: 29032 --QWRRbczYj8mXuejp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 03, 2011 at 11:04:17AM -0800, Jeff Davis wrote: > On Sun, 2011-01-02 at 11:40 +0000, mahmoud elzaiady wrote: > > i ask ,bigserial must not duplicate the value ? > > how solve this problem >=20 > This is probably due to the sequence being reset somehow. Have you > dumped/reloaded recently? Did you manually back up or copy the table? Alternatively, perhaps at some point you've added data to that column, rath= er than relying on PostgreSQL to supply a default value. -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com --QWRRbczYj8mXuejp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk0jTDEACgkQRiRfCGf1UMNFMwCfdifnvzJH6Vo031P8Q66KgZE6 8QkAnRqmlKUGiWDMeVlp4lkC1ZWmnteO =ezD1 -----END PGP SIGNATURE----- --QWRRbczYj8mXuejp--