Re: make the stats collector shutdown without writing the statsfiles if the immediate shutdown is requested.

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Masahiro Ikeda <ikedamsh(at)oss(dot)nttdata(dot)com>, kuroda(dot)hayato(at)fujitsu(dot)com, Zhihong Yu <zyu(at)yugabyte(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: make the stats collector shutdown without writing the statsfiles if the immediate shutdown is requested.
Date: 2021-03-24 09:36:47
Message-ID: 0d8e5aef-58f5-4cb3-ca46-e00390c12827@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021/03/24 3:51, Andres Freund wrote:
> Hi,
>
> On 2021-03-23 15:50:46 +0900, Fujii Masao wrote:
>> This fact makes me wonder that if we collect the statistics about WAL writing
>> from walreceiver as we discussed in other thread, the stats collector should
>> be invoked at more earlier stage. IIUC walreceiver can be invoked before
>> PMSIGNAL_BEGIN_HOT_STANDBY is sent.
>
> FWIW, in the shared memory stats patch the stats subsystem is
> initialized early on by the startup process.

This is good news!

Regards,

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2021-03-24 09:40:14 Re: [HACKERS] Custom compression methods
Previous Message Fujii Masao 2021-03-24 09:36:14 Re: make the stats collector shutdown without writing the statsfiles if the immediate shutdown is requested.