pgsql: Don't repeatedly register cache callbacks in pgoutput plugin.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Don't repeatedly register cache callbacks in pgoutput plugin.
Дата
Msg-id E1pVIOg-000MOn-LD@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't repeatedly register cache callbacks in pgoutput plugin.

Multiple cycles of starting up and shutting down the plugin within a
single session would eventually lead to "out of relcache_callback_list
slots", because pgoutput_startup blindly re-registered its cache
callbacks each time.  Fix it to register them only once, as all other
users of cache callbacks already take care to do.

This has been broken all along, so back-patch to all supported branches.

Shi Yu

Discussion: https://postgr.es/m/OSZPR01MB631004A78D743D68921FFAD3FDA79@OSZPR01MB6310.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/05172f1f37496acc13769b8cc0af6e77591be90f

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Add LZ4 compression to pg_dump
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: meson: windows: Fix tmp_install + prefix computation with meson