Re: Injection points: preloading and runtime arguments

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Injection points: preloading and runtime arguments
Дата
Msg-id ZpXycecyFA7yJ6SN@paquier.xyz
обсуждение исходный текст
Ответ на Re: Injection points: preloading and runtime arguments  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Injection points: preloading and runtime arguments
Список pgsql-hackers
On Wed, Jul 10, 2024 at 01:16:15PM +0900, Michael Paquier wrote:
> You mean with something that does a injection_point_cache_get()
> followed by a callback run if anything is found in the local cache?
> Why not.  Based on what you have posted at [1], it looks like this had
> better check the contents of the cache's generation with what's in
> shmem, as well as destroying InjectionPointCache if there is nothing
> else, so there's a possible dependency here depending on how much
> maintenance this should do with the cache to keep it consistent.

Now that 86db52a5062a is in the tree, this could be done with a
shortcut in InjectionPointCacheRefresh().  What do you think about
something like the attached, with your suggested naming?
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: long-standing data loss bug in initial sync of logical replication
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: CI, macports, darwin version problems