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

From Chapman Flack
Subject Re: is necessary to recheck cached data in fn_extra?
Date
Msg-id 5D4AF575.5000504@anastigmatix.net
Whole thread Raw
In response to Re: is necessary to recheck cached data in fn_extra?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 08/07/19 11:39, Tom Lane wrote:
> 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.

It is going to be either the last thing I put there, or NULL, right?
So a null check is sufficient?

Other than when the SRF_* api has commandeered it for other purposes?

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: s/rewinded/rewound/?
Next
From: Heikki Linnakangas
Date:
Subject: Re: stress test for parallel workers