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 88D71D1B265 for ; Mon, 7 Jun 2004 13:36:41 -0300 (ADT) 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 00436-02 for ; Mon, 7 Jun 2004 16:36:41 +0000 (GMT) Received: from ml-hw5.monsterlabs.com (ml-hw5.monsterlabs.com [216.183.105.167]) by svr1.postgresql.org (Postfix) with SMTP id CE46CD1B238 for ; Mon, 7 Jun 2004 13:36:38 -0300 (ADT) Received: (qmail 2896 invoked from network); 7 Jun 2004 16:36:38 -0000 Received: from w080.z064003242.bna-tn.dsl.cnc.net (HELO ?192.168.1.15?) (64.3.242.80) by ml-hw5.monsterlabs.com with SMTP; 7 Jun 2004 16:36:38 -0000 From: Marcus Whitney Reply-To: marcus@coldfeetcreative.com Organization: Coldfeet Creative To: pgsql-performance@postgresql.org Subject: pl/pgsql and Transaction Isolation Date: Mon, 7 Jun 2004 11:31:46 -0500 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406071131.46488.marcus@coldfeetcreative.com> 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: 200406/63 X-Sequence-Number: 7121 Hello, I have an instance where I have a series of pl/pgsql calls, that report s= tat=20 results to a common table. When other queries try to hit the stat table=20 (with DML commands; SELECT, INSERT, UPDATE, DELETE etc.) they are forced to= =20 wait in a queue until the pl/pgsql has finished executing.=20=20 will: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;=20 before these DML queries eliminate the locking? --=20 marcus whitney chief architect : cold feet creative www.coldfeetcreative.com 800.595.4401 =A0 cold feet presents emma email marketing for discriminating organizations everywhere visit www.myemma.com