From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Jeff Barrett <jbarrett(at)familynetwork(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: row level locking? |
Date: | 2001-09-10 17:18:13 |
Message-ID: | Pine.BSF.4.21.0109101014001.15401-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2001-09-10 17:22:35 | Re: calling a shell script from pl/pgsql |
Previous Message | Jeff Barrett | 2001-09-10 16:14:13 | calling a shell script from pl/pgsql |