Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BA3E81337B69 for ; Wed, 5 Jan 2011 01:45:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 25558-02 for ; Wed, 5 Jan 2011 05:44:57 +0000 (UTC) X-Greylist: delayed 00:06:42.033365 by SQLgrey-1.7.6 Received: from nm7-vm0.bullet.mail.ird.yahoo.com (nm7-vm0.bullet.mail.ird.yahoo.com [77.238.189.222]) by mail.postgresql.org (Postfix) with SMTP id AC4751337B5E for ; Wed, 5 Jan 2011 01:44:56 -0400 (AST) Received: from [77.238.189.52] by nm7.bullet.mail.ird.yahoo.com with NNFMP; 05 Jan 2011 05:38:13 -0000 Received: from [212.82.108.117] by tm5.bullet.mail.ird.yahoo.com with NNFMP; 05 Jan 2011 05:38:13 -0000 Received: from [127.0.0.1] by omp1026.mail.ird.yahoo.com with NNFMP; 05 Jan 2011 05:38:13 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 93702.45437.bm@omp1026.mail.ird.yahoo.com Received: (qmail 68131 invoked by uid 60001); 5 Jan 2011 05:38:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1294205892; bh=63Q2GiQCh1z6S8q2xtpghR3zAYw2nXU4V/clJKRKE+c=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=6UPLxHk528GfOZTXnwXzGZp5UaT3TQ+gXlqvUvd09KpcA7S/JdaIIgG00QtO+beCqsDq3VTR1vphCnC0aA2DvZRTaBQ+G1khMfXoh5O+XotiZ3GuHduWkByewF8bbV/0hILr1siC73IlmoSZLMKae/pRd/2HL5RtcRAK3Y/0p5Y= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=EDtJHVfBp3YwHxjoZrWiG0ZkJAZjn8a2acU5WALcxKXNxLI13qjrdiL1u4T9YqjepZE+na/XkOJatTwJn4SB08wyHJYs2VoDk5zCQDY7ESZC0QkfnKwziiZJNchT/fZr5f7dmFk39XKYMB+rD4JvHgRKlX7KwJEOv85/DusM+B8=; Message-ID: <977678.66417.qm@web24605.mail.ird.yahoo.com> X-YMail-OSG: qzlVAP0VM1lRWHrk9Usxm1c3zuh2BvRvAeulag.Ly4UBG02 A2GidhdQdEgYlC.Ndz128JdzfyJDI57bgtQq2M1b2wlovM016ZT9AiYJBhMd m7kb9oA8pfBT6ivAQRangcMWZo0cP4QRXaEg88XkJNxF51jVHipO7.wCtZs6 r_DZLVHZGeWLP04QyrL6zYanWrw8x._OH.9s1QlJmTpk7fzjv5CJwzHlA7ny xX2h9qkLzDEltstx7GdZZ93fBHK9KuO3_TuQAu6xpAxZLKeLgqpl9Ul9.MC6 e5OmdQjQ2RgHByJP3_LDx2evHtg96EP3cGLGzkZSB6cmSeRmo Received: from [41.237.131.178] by web24605.mail.ird.yahoo.com via HTTP; Wed, 05 Jan 2011 05:38:12 GMT X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> <1294081457.22634.8.camel@jdavis-ux.asterdata.local> <4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com> Date: Wed, 5 Jan 2011 05:38:12 +0000 (GMT) From: Melzaiady Subject: Re: BUG #5809: bigserial duplicate value To: Joshua Tolley , Jeff Davis Cc: pgsql-bugs@postgresql.org In-Reply-To: <4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1576535392-1294205892=:66417" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.897 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201101/38 X-Sequence-Number: 29060 --0-1576535392-1294205892=:66417 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =C2=A0i relying on PostgreSQL to supply a default value,=0Ai=C2=A0 have app= lication at=C2=A0 hospital and application appear error about duplicate =0A= value. =0A=0AThere was a primary key on this columns but i found error form= my application =0Aabout duplicate value and can`t insert value then i remo= ve the primary key =0Aconstraint to try=C2=A0 to find problem and try again= i found bigserial=C2=A0 put =0Aduplicate value on fields=C2=A0.=0A=C2=A0= =0A=0A________________________________=0A=0AMahmoud El Zaiady=0ABachelor of= Information Systems=0AFaculty of Computers & Information Sciences=0AMansou= ra University=0A=C2=A0=0A=C2=A0=0A=0A=0A=0A=0A=0A__________________________= ______=0AFrom: Joshua Tolley =0ATo: Jeff Davis =0ACc: mahmoud elzaiady ; pgsql-bugs@post= gresql.org=0ASent: Tue, January 4, 2011 6:34:57 PM=0ASubject: Re: [BUGS] BU= G #5809: bigserial duplicate value=0A=0AOn Mon, Jan 03, 2011 at 11:04:17AM = -0800, Jeff Davis wrote:=0A> On Sun, 2011-01-02 at 11:40 +0000, mahmoud elz= aiady wrote:=0A> > i ask ,bigserial must not duplicate the value ?=0A> > ho= w solve this problem=0A> =0A> This is probably due to the sequence being re= set somehow. Have you=0A> dumped/reloaded recently? Did you manually back u= p or copy the table?=0A=0AAlternatively, perhaps at some point you've added= data to that column, rather=0Athan relying on PostgreSQL to supply a defau= lt value.=0A=0A--=0AJoshua Tolley / eggyknap=0AEnd Point Corporation=0Ahttp= ://www.endpoint.com=0A=0A=0A=0A --0-1576535392-1294205892=:66417 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=0A
 i relying on PostgreSQL to supply = a default value,
=0A
i  have= application at  hospital and application appear error about duplicate= value.
There was a primary key on this columns but i found error form = my application about duplicate value and can`t insert value then i remove t= he primary key constraint to try  to find problem and try again i foun= d bigserial  put duplicate value on fields .
= =0A
 
=0A
=0A
=0A=0A
Mahmoud El Zaiady
Bachelor of = Information Systems
Faculty of Computers & Information Sciences
Mansoura Univer= sity
=0A
 
=0A
 
=0A
 
= =0A

=0A

=0A
=0A
=0AFrom: Joshua Toll= ey <eggyknap@gmail.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: mahmoud elzaiady <melzaiady@yahoo.co.uk>; = pgsql-bugs@postgresql.org
Sent: Tue, January 4, 2011 6:34:57 PM
Subject: Re: [BUGS] BUG #5809: bigserial duplicate value

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 th= is problem
>
> This is probably due to the sequence being rese= t somehow. Have you
> dumped/reloaded recently? Did you manually back= up or copy the table?

Alternatively, perhaps at some point you've a= dded data to that column, rather
than relying on PostgreSQL to supply a default valu= e.

--
Joshua Tolley / eggyknap
End Point Corporation
http:/= /www.endpoint.com

=0A=0A --0-1576535392-1294205892=:66417--