X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 316ADD1B182 for ; Mon, 7 Jun 2004 15:34:40 -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 51082-08 for ; Mon, 7 Jun 2004 18:34:32 +0000 (GMT) Received: from ml-hw5.monsterlabs.com (ml-hw5.monsterlabs.com [216.183.105.167]) by svr1.postgresql.org (Postfix) with SMTP id 4BF60D1B188 for ; Mon, 7 Jun 2004 15:29:56 -0300 (ADT) Received: (qmail 32397 invoked from network); 7 Jun 2004 18:29:45 -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 18:29:45 -0000 From: Marcus Whitney Reply-To: marcus@coldfeetcreative.com Organization: Coldfeet Creative To: pgsql-sql@postgresql.org Subject: Re: pl/pgsql and transaction locks Date: Mon, 7 Jun 2004 13:24:53 -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: <200406071324.53601.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/55 X-Sequence-Number: 18000 Hello, =A0 I have an instance where I have a series of pl/pgsql calls, that report= stat=20 results to a common table. =A0When 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. =A0 will: =A0SET 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