Re: Lock table in non-volatile functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Lock table in non-volatile functions
Date
Msg-id 6600.1174056885@sss.pgh.pa.us
Whole thread Raw
In response to Lock table in non-volatile functions  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: Lock table in non-volatile functions  (Gaetano Mendola <mendola@bigfoot.com>)
List pgsql-hackers
Gaetano Mendola <mendola@bigfoot.com> writes:
> I'm observing that is not allowed to LOCK a table in a
> STABLE/IMMUTABLE function but at same time is allowed
> a SELECT FOR UPDATE.

Really?  AFAICS, CommandIsReadOnly() will reject SELECT FOR UPDATE too.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Question: pg_class attributes and race conditions ?
Next
From: NikhilS
Date:
Subject: Re: UPDATE using sub selects