Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes:
>> SELECT session_data, id 
>> FROM   sessions
>> WHERE  id = ?
>> FOR UPDATE
>>
>> I think part of my problem might be that sessions is a view 
>> and not a table,

> Did you create an on update do instead rule ?
> This is currently not done automatically for views,
> thus views without additional "create rule"s are select only.
> But, I am wondering whether the "for update" places the correct lock ?

Hmm, good point!  I'm not sure what "select for update" on a view ought
to do, but I am pretty sure that the code will not do anything useful
or sensible for this case...

                        regards, tom lane

Reply via email to