Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7AD086330ED for ; Mon, 23 Mar 2009 19:57:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 52247-06 for ; Mon, 23 Mar 2009 19:57:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 264A8632C69 for ; Mon, 23 Mar 2009 19:57:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n2NMvYII004397; Mon, 23 Mar 2009 18:57:34 -0400 (EDT) To: Scott Marlowe cc: Brian Cox , "pgsql-performance@postgresql.org" Subject: Re: multiple threads inserting into the same table In-reply-to: References: <49C7F050.7030505@ca.com> Comments: In-reply-to Scott Marlowe message dated "Mon, 23 Mar 2009 14:38:52 -0600" Date: Mon, 23 Mar 2009 18:57:34 -0400 Message-ID: <4396.1237849054@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL=0.010 X-Spam-Level: X-Archive-Number: 200903/339 X-Sequence-Number: 33261 Scott Marlowe writes: > On Mon, Mar 23, 2009 at 2:25 PM, Brian Cox wrote: >> This generates and executes a single SQL insert. Since, as you point out, >> postgres seems to think that this transaction isn't doing anything, >> it's hard to figure out what the read is doing. > Might you have a firewall that's killing the connections? What does > netstat -an on the client side say about these connections? netstat will probably say the connection is open on both sides --- otherwise the sockets would have closed. It looks like both sides still think the connection is open. A firewall timeout is still a possibility, but you'd have had to have a fairly long idle time for that to happen. Are any of the threads issuing commands that might have run for very long intervals (tens of minutes)? regards, tom lane