Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tap7F-0005PE-Hw for pgsql-bugs@postgresql.org; Tue, 20 Nov 2012 14:47:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tap7A-0000ah-EO for pgsql-bugs@postgresql.org; Tue, 20 Nov 2012 14:47:57 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qAKEljt1006329; Tue, 20 Nov 2012 09:47:47 -0500 (EST) From: Tom Lane To: yongchao.xu@newtouch.cn cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7676: pgSocketCheck dosen`t return In-reply-to: References: Comments: In-reply-to yongchao.xu@newtouch.cn message dated "Mon, 19 Nov 2012 06:00:51 +0000" Date: Tue, 20 Nov 2012 09:47:45 -0500 Message-ID: <6328.1353422865@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/157 X-Sequence-Number: 34715 yongchao.xu@newtouch.cn writes: > I have this problem today: one thread of our application hung, and > we found the thread waiting for the result of poll() function. poll() > was called by pgSocketCheck(). So is it a bug of pg? So far as anyone can tell, this trace just indicates that the application is waiting for a response from the server. If there's a bug there, you'd need to provide more or different information to prove it. I think more likely you need to be consulting http://wiki.postgresql.org/wiki/Slow_Query_Questions regards, tom lane