Re: AW: The lightbulb just went on...

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>
Cc: "'Michael J Schout'" <mschout@gkg.net>, pgsql-hackers@postgreSQL.org
Date: 2000-10-19T14:11:58Z
Lists: 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