Re: SELECT Generating Row Exclusive Locks? - Mailing list pgsql-general

From Tom Lane
Subject Re: SELECT Generating Row Exclusive Locks?
Date
Msg-id 6605.1133412725@sss.pgh.pa.us
Whole thread Raw
In response to Re: SELECT Generating Row Exclusive Locks?  ("Thomas F. O'Connell" <tfo@sitening.com>)
Responses Re: SELECT Generating Row Exclusive Locks?
List pgsql-general
"Thomas F. O'Connell" <tfo@sitening.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

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: How to run a stored PL/pgSQL function?
Next
From: "Thomas F. O'Connell"
Date:
Subject: Re: SELECT Generating Row Exclusive Locks?