Re: WaitLatchOrSocket seems to not count to 4 right... - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: WaitLatchOrSocket seems to not count to 4 right...
Date
Msg-id 24a5db6e-5c8e-86af-2e37-24ed1d4f5ca6@oss.nttdata.com
Whole thread Raw
In response to Re: WaitLatchOrSocket seems to not count to 4 right...  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers

On 2022/02/08 9:51, Thomas Munro wrote:
> an index instead of a pointer...) or, since it's a bit silly to add
> both of those events, maybe we should do:
> 
> -       if ((wakeEvents & WL_POSTMASTER_DEATH) && IsUnderPostmaster)
> -               AddWaitEventToSet(set, WL_POSTMASTER_DEATH, PGINVALID_SOCKET,
> -                                                 NULL, NULL);
> -
>          if ((wakeEvents & WL_EXIT_ON_PM_DEATH) && IsUnderPostmaster)
>                  AddWaitEventToSet(set, WL_EXIT_ON_PM_DEATH, PGINVALID_SOCKET,
>                                                    NULL, NULL);
> +       else if ((wakeEvents & WL_POSTMASTER_DEATH) && IsUnderPostmaster)
> +               AddWaitEventToSet(set, WL_POSTMASTER_DEATH, PGINVALID_SOCKET,
> +

+1

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: shared_preload_libraries = 'pg_stat_statements' failing with installcheck (compute_query_id = auto)
Next
From: Julien Rouhaud
Date:
Subject: Re: shared_preload_libraries = 'pg_stat_statements' failing with installcheck (compute_query_id = auto)