pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 13:27:05 -0400
Message-ID: <26653.1404754025@sss.pgh.pa.us> (raw)
In-Reply-To: <84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se>
References: <20140707054645.2775.15941@wrigleys.postgresql.org>
	<22456.1404744850@sss.pgh.pa.us>
	<84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Mitu Verma <mitu.verma@ericsson.com> writes:
> I am running a single query at this moment.

> INSERT INTO eventLogEntry (object, method, bgwUser, time, realUser, host, application, tableIndex  ) VALUES (E'Server', E'Start', E'bgw', E'20140512122404', NULL, NULL, NULL, 539  );

> So not able to understand whats wrong with the database that it is unable to process this simple insert query.
> At the same time if drop the index and recreate the table then this issue is resolved. But obviously this is not a feasible solution in live environment. Plz see if you can provide some help.

>> pstack 16950
> #0  0x00000000006dc1da in hash_search ()
> #1  0x000000000060e430 in LockAcquireExtended ()
> #2  0x000000000060c46e in XactLockTableWait ()
> #3  0x0000000000476bc6 in _bt_doinsert ()
> #4  0x0000000000479882 in btinsert ()

It'd appear that the INSERT is blocked because it's waiting to see if some
other transaction that has inserted a conflicting key value into a unique
index will commit or not.  You could probably learn more about what's
going on by looking into pg_locks and pg_stat_activity.  But at this point
I see no reason whatsoever to think there's a Postgres bug involved.

			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



view thread (8+ messages)  latest in thread

Message-ID: <26653.1404754025@sss.pgh.pa.us>
Permalink:  ../26653.1404754025@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26653.1404754025@sss.pgh.pa.us

 · 

reply

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: <26653.1404754025@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>

* 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