Re: [SQL] reliable lock inside stored procedure (SOLVED) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [SQL] reliable lock inside stored procedure (SOLVED)
Date
Msg-id 9997.1225760279@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] reliable lock inside stored procedure (SOLVED)  ("Robert Haas" <robertmhaas@gmail.com>)
List pgsql-hackers
"Robert Haas" <robertmhaas@gmail.com> writes:
>> That's a good point.  We throw error for DECLARE CURSOR outside a
>> transaction block, since it's obviously a mistake.  I wonder whether
>> we shouldn't equally throw error for LOCK outside a transaction block.
>> 
>> Objections anyone?

> No, I've been bitten by this myself.

OK, done in CVS HEAD.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: new correlation metric
Next
From: "Robert Haas"
Date:
Subject: Re: [WIP] In-place upgrade