Re: Add WAL read stats to pg_stat_wal - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: Add WAL read stats to pg_stat_wal
Date
Msg-id 20230221.120032.1717422466695488514.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: Add WAL read stats to pg_stat_wal  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
List pgsql-hackers
At Mon, 20 Feb 2023 20:15:00 +0530, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote in 
> Having said that, what's the problem if we use shared memory to report
> the shutdown checkpoint to the postmaster? In case of abnormal
> shutdown where shared memory gets corrupted, we don't even write a
> shutdown checkpoint, no? In such a case, the postmaster doesn't send
> SIGUSR2 to the checkpointer, instead it sends SIGQUIT. AFICS, using
> shared memory doesn't seem to have any problem. Do you have any other
> thoughts in mind?

I had a baseless belief that postmaster doesn't touch shared memory,
but as Andres suggested, SendPostmasterSignal() already does that.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Add WAL read stats to pg_stat_wal
Next
From: Amit Langote
Date:
Subject: Re: SQL/JSON revisited