From: Jeff Barrett <jbarrett@familynetwork.com>
To: pgsql-sql@postgresql.org
Subject: row level locking?
Date: Mon, 10 Sep 2001 11:25:07 -0400
Message-ID: <9nim69$1rhk$1@news.tht.net> (raw)
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?
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)
How long will each row be locked for?
These queries can be updating a good number of rows ( > 10,000) every 10
minutes and I need to figure out how signifigant of an impact the locking
occuring in those updates can be.
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: jbarrett@familynetwork.com
Subject: Re: row level locking?
In-Reply-To: <9nim69$1rhk$1@news.tht.net>
* 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