Re: "out of relcache_callback_list slots" after multiple calls to pg_logical_slot_get_binary_changes
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: "out of relcache_callback_list slots" after multiple calls to pg_logical_slot_get_binary_changes |
| Дата | |
| Msg-id | 3569225.1676907043@sss.pgh.pa.us обсуждение |
| Ответ на | Re: "out of relcache_callback_list slots" after multiple calls to pg_logical_slot_get_binary_changes (Kyotaro Horiguchi <horikyota.ntt@gmail.com>) |
| Ответы |
RE: "out of relcache_callback_list slots" after multiple calls to pg_logical_slot_get_binary_changes
|
| Список | pgsql-hackers |
Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> I'm pretty sure that everytime an output plugin is initialized on a
> process, it installs the same set of syscache/relcache callbacks each
> time. Do you think we could simply stop duplicate registration of
> those callbacks by using a static boolean? It would be far simpler.
Yeah, I think that's the way it's done elsewhere. Removing and
re-registering your callback seems expensive, and it also destroys
any reasoning that anyone might have made about the order in which
different callbacks will get called. (Admittedly, that's probably not
important for invalidation callbacks, but it does matter for e.g.
process exit callbacks.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера