From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: gerydeft@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7805: Inconsistency, multiple versions
Date: Mon, 14 Jan 2013 20:12:37 +0200
Message-ID: <50F44A95.6040904@vmware.com> (raw)
In-Reply-To: <E1TugTq-0001fT-5Z@wrigleys.postgresql.org>
References: <E1TugTq-0001fT-5Z@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 14.01.2013 11:37, gerydeft@gmail.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7805
> Logged by: Gery Deft
> Email address: gerydeft@gmail.com
> PostgreSQL version: 9.2.2
> Operating system: Windows Server, Windows 7,Ubuntu linux
> Description:
>
> Hi,
>
> Versions: 9.2.*,8.4.*
> Our project uses PostgreSQL as main database system, but recently we found
> that PG have serious inconsistency problems.
> We have about 60 connections to the database, reading and writing it most of
> the time.
> It does not matter if we use inline SQL, stored procedures or
> pg_advisory_lock, after a few hundreds of thousand records the database will
> contain duplication in a key field.
> Example:
> CREATE TABLE<table>
> (
> id serial NOT NULL,
> name character varying(100),
> ...
> CONSTRAINT domain_pkey PRIMARY KEY (id),
> CONSTRAINT domain_name_key UNIQUE (name)
> ---------------------------------
> SELECT id, name,length(name) FROM<table> where name like 'samedata%';
> 3161132;"samedata";8
> 7821530;"samedata";8
> 1962653;"samedata";8
>
> I made ASCII comparison and they are identical.
It's hard to believe that there would be any fundamental bug like that
in constraint checking, or we would've gotten plenty of reports of it
before. There must be something peculiar about your environment, but
without more details, it's impossible to guess what it might be. If you
can put together a smaller test case to reproduce the issue and post
that, that would make it possible for someone to diagnose the problem.
If that's not feasible, please explain in more detail what does the
table definition look like exactly, and how you're loading the data.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: hlinnakangas@vmware.com, gerydeft@gmail.com
Subject: Re: BUG #7805: Inconsistency, multiple versions
In-Reply-To: <50F44A95.6040904@vmware.com>
References: <E1TugTq-0001fT-5Z@wrigleys.postgresql.org> <50F44A95.6040904@vmware.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