Re: AW: The lightbulb just went on...
| От | Tom Lane |
|---|---|
| Тема | Re: AW: The lightbulb just went on... |
| Дата | |
| Msg-id | 8784.971964718@sss.pgh.pa.us обсуждение |
| Ответ на | AW: The lightbulb just went on... (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>) |
| Ответы |
Re: AW: The lightbulb just went on...
|
| Список | 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 по дате отправления: