From: Mitu Verma <mitu.verma@ericsson.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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, 7 Jul 2014 17:18:23 +0000
Message-ID: <84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se> (raw)
In-Reply-To: <22456.1404744850@sss.pgh.pa.us>
References: <20140707054645.2775.15941@wrigleys.postgresql.org>
<22456.1404744850@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi Tom,
Thanks for your response. But at server side it is showing the following behavior .
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 ()
#5 0x00000000006d6d25 in FunctionCall6Coll ()
#6 0x00000000004743c7 in index_insert ()
#7 0x0000000000563375 in ExecInsertIndexTuples ()
#8 0x000000000056eba3 in ExecModifyTable ()
#9 0x000000000055a863 in ExecProcNode ()
#10 0x0000000000559871 in standard_ExecutorRun ()
#11 0x000000000062037f in ProcessQuery ()
#12 0x00000000006205a7 in PortalRunMulti ()
#13 0x0000000000621068 in PortalRun ()
#14 0x000000000061dc5b in exec_simple_query ()
#15 0x000000000061e464 in PostgresMain ()
#16 0x00000000005e38dc in ServerLoop ()
#17 0x00000000005e45dc in PostmasterMain ()
#18 0x0000000000588dbe in main ()
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, July 07, 2014 8:24 PM
To: Mitu Verma
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #10888: application is getting hanged in the poll() function of libpq.so.
mitu.verma@ericsson.com writes:
> Application gets hanged while making a query to the PostgreSql database.
> I reproduced the issues on our testbed by making a simple C program
> which makes a synchronous connection with the DB.
> Pstack is showing the following error when the application is hang
> (see
> below)
> Now as it looks that it is getting hanged in the poll() function of
> libpq.so.
That looks like it's just waiting for the server to respond. You sure you didn't simply issue a very long-running query? Check to see if the connected backend process is accumulating CPU time and/or I/O activity.
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: mitu.verma@ericsson.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #10888: application is getting hanged in the poll() function of libpq.so.
In-Reply-To: <84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se>
References: <20140707054645.2775.15941@wrigleys.postgresql.org> <22456.1404744850@sss.pgh.pa.us> <84BC7AB0D621A74893EC9C9E151293B003F8F581@ESESSMB207.ericsson.se>
* 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