Re: is necessary to recheck cached data in fn_extra? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: is necessary to recheck cached data in fn_extra?
Date
Msg-id CAFj8pRAPpT29i3W-pXv4P-1sTMqGZtkubqKhiAey80+0pqu2mA@mail.gmail.com
Whole thread Raw
In response to Re: is necessary to recheck cached data in fn_extra?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: is necessary to recheck cached data in fn_extra?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers


st 7. 8. 2019 v 17:39 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I should to use a cache accessed via fn_extra. There will be stored data
> about function parameters (types). If I understand correctly, these data
> should be stable in query, and then recheck is not necessary. Is it true?

I wouldn't trust that.  You don't really know what the lifespan of
a fn_extra cache is.

fn_extra cache cannot be longer than query. And if I understand well, then is not possible to change parameter types inside query?

Pavel


                        regards, tom lane

pgsql-hackers by date:

Previous
From: Geoff Winkless
Date:
Subject: Re: s/rewinded/rewound/?
Next
From: Konstantin Knizhnik
Date:
Subject: Re: Removing unneeded self joins