pgsql: Avoid creating parallel apply state hash table unless required. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Avoid creating parallel apply state hash table unless required.
Date
Msg-id E1pGAVl-003Oag-3F@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Amit Langote
Date:
Subject: Re: pgsql: Improve handling of inherited GENERATED expressions.
Next
From: Amit Kapila
Date:
Subject: pgsql: Ignore dropped and generated columns from the column list.