Re: is necessary to recheck cached data in fn_extra?

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: is necessary to recheck cached data in fn_extra?
Дата
Msg-id 5D4AF575.5000504@anastigmatix.net
обсуждение исходный текст
Ответ на Re: is necessary to recheck cached data in fn_extra?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: s/rewinded/rewound/?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: stress test for parallel workers