pgsql: Avoid creating parallel apply state hash table unless required.

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Avoid creating parallel apply state hash table unless required.
Дата
Msg-id E1pGAVl-003Oag-3F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid creating parallel apply state hash table unless required.

This hash table is used to cache the state of streaming transactions being
applied by the parallel apply workers. So, this should be created only
when we are successful in launching at least one worker. This avoids rare
case memory leak when we are never able to launch any worker.

Author: Ted Yu
Discussion: https://postgr.es/m/CALte62wg0rBR3Vj2beV=HiWo2qG9L0hzKcX=yULNER0wmf4aEw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dca8b01f5f1f7c83c59a16393724fbd8a29ddecb

Modified Files
--------------
src/backend/replication/logical/applyparallelworker.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: pgsql: Improve handling of inherited GENERATED expressions.
Следующее
От: Amit Kapila
Дата:
Сообщение: pgsql: Ignore dropped and generated columns from the column list.