From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Duplicate primary key and also the OID !!!!
Date: Sun, 06 Apr 2003 12:59:08 -0400
Message-ID: <19120.1049648348@sss.pgh.pa.us> (raw)
In-Reply-To: <b6p5qd$1jui$1@news.hub.org>
References: <b6p5qd$1jui$1@news.hub.org>
"Gaetano Mendola" <mendola@bigfoot.com> writes:
> How is it possible have the oid and the id_user_traffic (
> serial primary key ) duplicated ? Any idea ?
Have you had any power failures lately? Tried to copy a running
database via "tar" or "cp"? Anything interesting like that?
There are ways for multiple versions of a row to all appear good,
if something happens that breaks the synchronization between datafiles
and pg_clog. AFAIK these all reduce to DBA error (copying a live
database) or hardware misfeasance (disk drive claiming write complete
before it really is, and then losing the data in a power failure).
Also, what Postgres version are you using? Awhile back there was a bug
that allowed a sequence to appear to go backward in a crash.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mendola@bigfoot.com
Subject: Re: Duplicate primary key and also the OID !!!!
In-Reply-To: <19120.1049648348@sss.pgh.pa.us>
References: <b6p5qd$1jui$1@news.hub.org> <19120.1049648348@sss.pgh.pa.us>
* 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