releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL

From: Ted Yu <yuzhihong(at)gmail(dot)com>
To: akapila(at)postgresql(dot)org, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Date: 2023-01-10 17:25:29
Message-ID: CALte62wg0rBR3Vj2beV=HiWo2qG9L0hzKcX=yULNER0wmf4aEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ted Yu 2023-01-10 17:26:17 Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Previous Message Robert Haas 2023-01-10 17:00:46 Re: split TOAST support out of postgres.h