releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL - Mailing list pgsql-hackers

From Ted Yu
Subject releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
Date
Msg-id CALte62wg0rBR3Vj2beV=HiWo2qG9L0hzKcX=yULNER0wmf4aEw@mail.gmail.com
Whole thread Raw
Responses Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
RE: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL
List 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

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: split TOAST support out of postgres.h
Next
From: Ted Yu
Date:
Subject: Re: releasing ParallelApplyTxnHash when pa_launch_parallel_worker returns NULL