Re: SELECT Generating Row Exclusive Locks?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Cc: PgSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: SELECT Generating Row Exclusive Locks?
Date: 2005-12-01 04:52:05
Message-ID: 6605.1133412725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Thomas F. O'Connell" <tfo(at)sitening(dot)com> writes:
> For instance, if a long SELECT were running against table_foo and an
> UPDATE arrived wanting to update table_foo, I would expect to see in
> pg_locks an entry corresponding to the SELECT with granted = true and
> an entry corresponding to the UPDATE with granted = false.

Why would you expect to see that exactly? SELECTs don't block UPDATEs.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jochen Wiedmann 2005-12-01 05:04:32 Re: undefined behaviour for sub-transactions?
Previous Message Joshua D. Drake 2005-12-01 04:21:54 Re: How to run a stored PL/pgSQL function?