Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3B827632C69 for ; Mon, 23 Mar 2009 20:02:58 -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 54231-03 for ; Mon, 23 Mar 2009 20:02:50 -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 E1BEB6324D7 for ; Mon, 23 Mar 2009 20:02:55 -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 n2NN2q9W004512; Mon, 23 Mar 2009 19:02:52 -0400 (EDT) To: Brian Cox cc: "pgsql-performance@postgresql.org" Subject: Re: multiple threads inserting into the same table In-reply-to: <49C7F050.7030505@ca.com> References: <49C7F050.7030505@ca.com> Comments: In-reply-to Brian Cox message dated "Mon, 23 Mar 2009 13:25:52 -0700" Date: Mon, 23 Mar 2009 19:02:52 -0400 Message-ID: <4511.1237849372@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/340 X-Sequence-Number: 33262 Brian Cox writes: > This is a java app. A thread dump reveals that these 5 threads are all > asleep on a socket read to postgres (see below). It seems clear that what you've got isn't a performance problem. May I suggest taking it to pgsql-jdbc? The folk there are more likely to be able to help you figure out what's wrong than most of us. regards, tom lane