pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Clark <eclark@zerohp.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: locks and variable substitution
Date: 25 Jul 2003 12:57:12 -0700
Message-ID: <1059163033.27029.7.camel@eric> (raw)
In-Reply-To: <20030725184912.HHCX20032.out005.verizon.net@localhost>
References: <20030725184912.HHCX20032.out005.verizon.net@localhost>

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




view thread (2+ messages)

Message-ID: <1059163033.27029.7.camel@eric>
Permalink:  ../1059163033.27029.7.camel@eric/
Also on:    postgresql.org/message-id/1059163033.27029.7.camel@eric

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: eclark@zerohp.com
  Subject: Re: locks and variable substitution
  In-Reply-To: <1059163033.27029.7.camel@eric>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox