From gerydeft@gmail.com Mon Jan 14 17:56:00 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoGO-0008KU-IW for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 17:56:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TuoGN-0005CA-7v for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 17:55:59 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TugTr-00082M-Bn for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 09:37:23 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TugTq-0006LQ-GR for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 09:37:22 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TugTq-000320-Cz for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 09:37:22 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TugTq-0001fT-5Z for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 09:37:22 +0000 Date: Mon, 14 Jan 2013 09:37:22 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7805: Inconsistency, multiple versions To: pgsql-bugs@postgresql.org From: gerydeft@gmail.com X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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 ( 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
where name like 'samedata%'; 3161132;"samedata";8 7821530;"samedata";8 1962653;"samedata";8 I made ASCII comparison and they are identical. This bug corrupts the workflow of our project, please fix it as soon as possible. Thanks, Gery =20 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs From hlinnakangas@vmware.com Mon Jan 14 18:12:30 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoWM-0000KX-00 for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:12:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TuoWL-0003i2-85 for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:12:29 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoWK-0003hw-8k for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 18:12:28 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuoWI-0005dM-P1 for pgsql-bugs@postgresql.org; Mon, 14 Jan 2013 18:12:27 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 4EBC2289F9; Mon, 14 Jan 2013 10:12:25 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 4B1D0401DA; Mon, 14 Jan 2013 10:12:25 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 3B7A1C1544; Mon, 14 Jan 2013 10:12:25 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B8xuGqx_hPiK; Mon, 14 Jan 2013 10:12:25 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 106D1C1530; Mon, 14 Jan 2013 10:12:25 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Mon, 14 Jan 2013 10:12:24 -0800 (PST) Message-ID: <50F44A95.6040904@vmware.com> Date: Mon, 14 Jan 2013 20:12:37 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 To: gerydeft@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7805: Inconsistency, multiple versions References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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
> ( > 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
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