Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X4AJ9-0004mH-W2 for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jul 2014 14:54:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X4AJ9-0003wN-Bh for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jul 2014 14:54:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X4AJ8-0003wG-OS for pgsql-bugs@postgresql.org; Mon, 07 Jul 2014 14:54:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X4AJ5-0004wY-TU for pgsql-bugs@postgresql.org; Mon, 07 Jul 2014 14:54:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s67EsAS7022457; Mon, 7 Jul 2014 10:54:10 -0400 From: Tom Lane To: mitu.verma@ericsson.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10888: application is getting hanged in the poll() function of libpq.so. In-reply-to: <20140707054645.2775.15941@wrigleys.postgresql.org> References: <20140707054645.2775.15941@wrigleys.postgresql.org> Comments: In-reply-to mitu.verma@ericsson.com message dated "Mon, 07 Jul 2014 05:46:45 -0000" Date: Mon, 07 Jul 2014 10:54:10 -0400 Message-ID: <22456.1404744850@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 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