Re: SetQuerySnapshot, once again - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: SetQuerySnapshot, once again
Date
Msg-id 3D0E77E0.877B9F56@tpf.co.jp
Whole thread Raw
In response to SetQuerySnapshot, once again  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SetQuerySnapshot, once again  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Default privileges for new databases (was Re: Can't
Next
From: Josh Berkus
Date:
Subject: Re: Default privileges for new databases (was Re: Can't import large objects in most recent cvs)