From: Melzaiady <melzaiady@yahoo.co.uk>
To: Joshua Tolley <eggyknap@gmail.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5809: bigserial duplicate value
Date: Wed, 5 Jan 2011 05:38:12 +0000 (GMT)
Message-ID: <977678.66417.qm@web24605.mail.ird.yahoo.com> (raw)
In-Reply-To: <4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com>
References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org>
<1294081457.22634.8.camel@jdavis-ux.asterdata.local>
<4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com>
i relying on PostgreSQL to supply a default value,
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 the primary key
constraint to try to find problem and try again i found bigserial put
duplicate value on fields .
________________________________
Mahmoud El Zaiady
Bachelor of Information Systems
Faculty of Computers & Information Sciences
Mansoura University
________________________________
From: Joshua Tolley <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 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?
Alternatively, perhaps at some point you've added data to that column, rather
than relying on PostgreSQL to supply a default value.
--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: melzaiady@yahoo.co.uk, eggyknap@gmail.com, pgsql@j-davis.com
Subject: Re: BUG #5809: bigserial duplicate value
In-Reply-To: <977678.66417.qm@web24605.mail.ird.yahoo.com>
References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> <1294081457.22634.8.camel@jdavis-ux.asterdata.local> <4d234c4c.086fec0a.3a5b.ffff892f@mx.google.com> <977678.66417.qm@web24605.mail.ird.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox