Re: Lock table in non-volatile functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Lock table in non-volatile functions
Date: 2007-03-16 14:54:45
Message-ID: 6600.1174056885@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gaetano Mendola <mendola(at)bigfoot(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message NikhilS 2007-03-16 14:55:16 Re: UPDATE using sub selects
Previous Message Alvaro Herrera 2007-03-16 14:52:21 Re: Question: pg_class attributes and race conditions ?