Re: Dereference before NULL check (src/backend/storage/ipc/latch.c) - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)
Date
Msg-id CA+hUKGJPp7Mxt7gCmboYbB=t0H7ASa99uou=Br5w88NFiEx==g@mail.gmail.com
Whole thread Raw
In response to Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
On Thu, Nov 5, 2020 at 10:47 AM Ranier Vilela <ranier.vf@gmail.com> wrote:
> Em ter., 3 de nov. de 2020 às 22:09, Kyotaro Horiguchi <horikyota.ntt@gmail.com> escreveu:
>> If we call WaitLatch(OrSocket) that waits on the latch, it immediately
>> returns because the latch is set. If we called ResetLatch before the
>> next call to WaitLatch(), it correctly waits on a trigger to be
>> pulled.
>
> +1
> The patch for me is syntactically equal to the code changed and
> avoids the dereference.

Thanks!  Pushed.



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: A few new options for CHECKPOINT
Next
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: POC: postgres_fdw insert batching