Re: AW: The lightbulb just went on... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: AW: The lightbulb just went on...
Date
Msg-id 8784.971964718@sss.pgh.pa.us
Whole thread Raw
In response to AW: The lightbulb just went on...  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
Responses Re: AW: The lightbulb just went on...  (Michael J Schout <mschout@gkg.net>)
List pgsql-hackers
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at> 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


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Re: pg_dump docs
Next
From: Tom Lane
Date:
Subject: Re: time stops within transaction