releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Ted Yu <yuzhihong@gmail.com>
From: Ted Yu <yuzhihong@gmail.com>
To: akapila@postgresql.org, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-01-10T17:25:29Z
Lists: pgsql-hackers
Hi, I was reading src/backend/replication/logical/applyparallelworker.c . In `pa_allocate_worker`, when pa_launch_parallel_worker returns NULL, I think the `ParallelApplyTxnHash` should be released. Please see the patch. Thanks
Commits
-
Avoid creating parallel apply state hash table unless required.
- dca8b01f5f1f 16.0 landed