From: Tom Lane <tgl@sss.pgh.pa.us>
To: me@shanewright.co.uk
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: table locking
Date: Mon, 18 Feb 2002 10:42:56 -0500
Message-ID: <11225.1014046976@sss.pgh.pa.us> (raw)
In-Reply-To: <200202181521.g1IFLwk24097@fullerruss.dsvr.co.uk>
References: <200202181516.g1IFGF517803@candle.pha.pa.us>
<200202181521.g1IFLwk24097@fullerruss.dsvr.co.uk>
I think you want just LOCK TABLE tab IN SHARE ROW EXCLUSIVE MODE
or LOCK TABLE tab IN EXCLUSIVE MODE. The latter would lock out
SELECT FOR UPDATE, the former wouldn't.
regards, tom lane
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: tgl@sss.pgh.pa.us, me@shanewright.co.uk, pgman@candle.pha.pa.us
Subject: Re: table locking
In-Reply-To: <11225.1014046976@sss.pgh.pa.us>
* 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