From: Jeff Davis <pgsql@j-davis.com>
To: mahmoud elzaiady <melzaiady@yahoo.co.uk>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5809: bigserial duplicate value
Date: Mon, 03 Jan 2011 11:04:17 -0800
Message-ID: <1294081457.22634.8.camel@jdavis-ux.asterdata.local> (raw)
In-Reply-To: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org>
References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org>
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
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: pgsql@j-davis.com, melzaiady@yahoo.co.uk
Subject: Re: BUG #5809: bigserial duplicate value
In-Reply-To: <1294081457.22634.8.camel@jdavis-ux.asterdata.local>
References: <201101021140.p02Be7mI007141@wwwmaster.postgresql.org> <1294081457.22634.8.camel@jdavis-ux.asterdata.local>
* 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