X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 52D48D1C4B7 for ; Fri, 25 Jul 2003 19:57:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 68816-06 for ; Fri, 25 Jul 2003 16:56:23 -0300 (ADT) Received: from paperboy.corp.tmtrading.com (mail.intmt.com [205.161.220.3]) by svr1.postgresql.org (Postfix) with ESMTP id A2573D1C4C8 for ; Fri, 25 Jul 2003 16:57:08 -0300 (ADT) Received: from [205.161.220.44] (unknown [205.161.220.44]) by paperboy.corp.tmtrading.com (Postfix) with ESMTP id A947912BB01 for ; Fri, 25 Jul 2003 12:57:04 -0700 (MST) Subject: Re: locks and variable substitution From: Eric Clark To: "pgsql-sql@postgresql.org" In-Reply-To: <20030725184912.HHCX20032.out005.verizon.net@localhost> References: <20030725184912.HHCX20032.out005.verizon.net@localhost> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 25 Jul 2003 12:57:12 -0700 Message-Id: <1059163033.27029.7.camel@eric> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/389 X-Sequence-Number: 14503 On Fri, 2003-07-25 at 11:49, gack@verizon.net wrote: > > lock table excl_table in exclusive mode; That probably wont work, but this will: EXECUTE ''LOCK TABLE '' || quote_ident(excl_table) || '' IN EXCLUSIVE MODE''; Eric