Re: SetQuerySnapshot, once again
От | Hiroshi Inoue |
---|---|
Тема | Re: SetQuerySnapshot, once again |
Дата | |
Msg-id | 3D0E77E0.877B9F56@tpf.co.jp обсуждение исходный текст |
Ответ на | SetQuerySnapshot, once again (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: SetQuerySnapshot, once again
|
Список | pgsql-hackers |
Tom Lane wrote: > > Hiroshi Inoue <Inoue@tpf.co.jp> writes: > > I have a question. Could the functions which contain no > > queries other than SELECT be stable(returns the definite > > result for a query) with it ? > > Sorry, I don't understand ... Let t be a table which is defined as create table t (id serial primary key, dt text); Then is the following function *stable* ? create function f1(int4) returns text as ' declare txt text; begin select dtinto txt from t where id = $1; return txt; end ' language plpgsql; If SetQuerySnapshot is called for the above *select*, the result isn't determined by the snapshot of the function. regards, Hiroshi Inouehttp://w2422.nsk.ne.jp/~inoue/
В списке pgsql-hackers по дате отправления: