X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 05B88329E44 for ; Thu, 23 Sep 2004 18:05:57 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99526-06 for ; Thu, 23 Sep 2004 17:05:39 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B546B329CB0 for ; Thu, 23 Sep 2004 18:05:39 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i8NH5W8S027438; Thu, 23 Sep 2004 13:05:32 -0400 (EDT) To: "Jason Coene" Cc: "'Mr Pink'" , "'Scott Kirkwood'" , pgsql-performance@postgresql.org Subject: Re: Caching of Queries In-reply-to: <200409231653.i8NGrUaX017580@ms-smtp-02.nyroc.rr.com> References: <200409231653.i8NGrUaX017580@ms-smtp-02.nyroc.rr.com> Comments: In-reply-to "Jason Coene" message dated "Thu, 23 Sep 2004 12:53:25 -0400" Date: Thu, 23 Sep 2004 13:05:32 -0400 Message-ID: <27437.1095959132@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/242 X-Sequence-Number: 8370 "Jason Coene" writes: > All of our "postgres" processes end up in the "semwai" state - seemingly > waiting on other queries to complete. If the system isn't taxed in CPU or > disk, I have a good feeling that this may be the cause. Whatever that is, I'll bet lunch that it's got 0 to do with caching query plans. Can you get stack tracebacks from some of the stuck processes? What do they show in "ps"? regards, tom lane