From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mitu Verma <mitu.verma@ericsson.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10888: application is getting hanged in the poll() function of libpq.so.
Date: Mon, 07 Jul 2014 14:35:11 -0400
Message-ID: <28443.1404758111@sss.pgh.pa.us> (raw)
In-Reply-To: <84BC7AB0D621A74893EC9C9E151293B003F8F5A0@ESESSMB207.ericsson.se>
References: <20140707054645.2775.15941@wrigleys.postgresql.org>
<22456.1404744850@sss.pgh.pa.us>
<84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se>
<26653.1404754025@sss.pgh.pa.us>
<84BC7AB0D621A74893EC9C9E151293B003F8F5A0@ESESSMB207.ericsson.se>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Mitu Verma <mitu.verma@ericsson.com> writes:
> I am not sure if it is a postgres issue or not, so need your help in that.
Well, it looks like you've got two concurrent transactions trying to
insert the exact same data:
> 16384 | fm_db_CollectCCN | 20714 | 16391 | mmsuper | | ::1 | | 19540
> | 2014-07-07 19:10:09.295565+02 | 2014-07-07 19:10:09.311701+02 | 2014-07-07 19:10:09.311701+02 | f | INSERT INTO ev
> entLogEntry (object, method, bgwUser, time, realUser, host, application, tableIndex ) VALUES (E'Server', E'Start', E'bgw'
> , E'20140512122404', NULL, NULL, NULL, 539 )
> 16384 | fm_db_CollectCCN | 20819 | 16391 | mmsuper | | ::1 | | 19602
> | 2014-07-07 19:10:45.18688+02 | 2014-07-07 19:10:45.202903+02 | 2014-07-07 19:10:45.202903+02 | f | INSERT INTO ev
> entLogEntry (object, method, bgwUser, time, realUser, host, application, tableIndex ) VALUES (E'Server', E'Start', E'bgw'
> , E'20140512122404', NULL, NULL, NULL, 539 )
Presumably this is falling foul of a unique index on the table.
The second one is going to block until the first one either
commits or rolls back.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, mitu.verma@ericsson.com
Subject: Re: BUG #10888: application is getting hanged in the poll() function of libpq.so.
In-Reply-To: <28443.1404758111@sss.pgh.pa.us>
References: <20140707054645.2775.15941@wrigleys.postgresql.org> <22456.1404744850@sss.pgh.pa.us> <84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se> <26653.1404754025@sss.pgh.pa.us> <84BC7AB0D621A74893EC9C9E151293B003F8F5A0@ESESSMB207.ericsson.se> <28443.1404758111@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