Re: 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: Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Date: 2023-01-10 17:26:17
Message-ID: CALte62wbhARxWi89D_bVa07aOVcZ+4AEkRNPNhtb_tdaNhwkHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 10, 2023 at 9:25 AM Ted Yu <yuzhihong(at)gmail(dot)com> wrote:

> 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
>
Here is the patch :-)

Attachment Content-Type Size
destroy-parallel-apply-txn-hash-when-worker-not-launched.patch application/octet-stream 595 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2023-01-10 17:26:53 Re: Transparent column encryption
Previous Message Ted Yu 2023-01-10 17:25:29 releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL