AW: The lightbulb just went on...

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: The lightbulb just went on...
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633680B6@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: The lightbulb just went on...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> what happens to sessions is that it does:
> 
> SELECT session_data, id 
> FROM   sessions
> WHERE  id = ?
> FOR UPDATE
> 
> .... client does some processing ...
> 
> UPDATE sesssions set session_data = ? WHERE id = ?;
> 
> (this is where the error happens)
> 
> 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 ?

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chris
Дата:
Сообщение: Re: INHERITS doesn't offer enough functionality
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: time stops within transaction