Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WE7DC-0002k1-2A for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Feb 2014 01:05:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WE7DB-0003Jm-DM for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Feb 2014 01:05:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WE7DA-0003Jf-GX for pgsql-bugs@postgresql.org; Fri, 14 Feb 2014 01:05:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WE7D5-0005Rj-KP for pgsql-bugs@postgresql.org; Fri, 14 Feb 2014 01:05:00 +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 s1E14sBp000369; Thu, 13 Feb 2014 20:04:54 -0500 From: Tom Lane To: john gale cc: pgsql-bugs@postgresql.org Subject: Re: some postgres 2s SELECT queries are deadlocking forever in __sendto (libsystem_kernel.dylib) In-reply-to: References: Comments: In-reply-to john gale message dated "Thu, 13 Feb 2014 16:48:43 -0800" Date: Thu, 13 Feb 2014 20:04:54 -0500 Message-ID: <368.1392339894@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 john gale writes: > We are running a Postgres 9.3.2 server on a Mac Pro running OS X 10.9.0. As an automation results server it's heavily inserted into (30-80 queries per sec), periodically selected from (once every few minutes). > We created this instance with Postgres 9.3.0 and after a time ran into an issue where some SELECTs that usually completed in 2s were deadlocking, still around hours or days later. I read something that seemed related to this issue under the release notes for 9.3.2 although can't find it again now. After upgrading to 9.3.2, the issue went away for a month. I don't see any reason to think that's a deadlock. The stack trace shows the backend is waiting to send data to its client. Since the client also appears to be waiting for data to come in, it seems like this represents some kind of network-stack bug. You might try to get Apple interested. Although the first thing they're gonna ask you is if 10.9.1 fixes it. 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