From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Jeff Barrett <jbarrett@familynetwork.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: row level locking?
Date: Mon, 10 Sep 2001 10:18:13 -0700 (PDT)
Message-ID: <Pine.BSF.4.21.0109101014001.15401-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <9nim69$1rhk$1@news.tht.net>
On Mon, 10 Sep 2001, Jeff Barrett wrote:
> I have an update statement (no transaction controls surround these
> statements):
>
> update sessions set sessdate = 0 where sessid in ( long list of ids);
>
> How long will the rows being updated be locked for this statement? Will all
> be locked until all updates are completed or will the row locking only occur
> for each row being updated?
AFAIK until the end of statement (since it's wrapped in an implicit
transaction)
> If I have a statement like:
>
> update sessions set sessdate = 0 where datetime < 10000; (this would be the
> same criteria that created the list used above)
Should be the same I would guess.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, jbarrett@familynetwork.com
Subject: Re: row level locking?
In-Reply-To: <Pine.BSF.4.21.0109101014001.15401-100000@megazone23.bigpanda.com>
References: <9nim69$1rhk$1@news.tht.net> <Pine.BSF.4.21.0109101014001.15401-100000@megazone23.bigpanda.com>
* 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