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

From: Masahiro Ikeda <ikedamsh(at)oss(dot)nttdata(dot)com>
To: kuroda(dot)hayato(at)fujitsu(dot)com
Cc: 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-16 23:09:27
Message-ID: 1ffbadf8496146434e97a6a1c3e9859f@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021-03-16 13:44, kuroda(dot)hayato(at)fujitsu(dot)com wrote:
> Dear Ikeda-san
>
> I think the idea is good.
>
> I read the patch and other sources, and I found
> process_startup_packet_die also execute _exit(1).
> I think they can be combined into one function and moved to
> interrupt.c, but
> some important comments might be removed. How do you think?

Hi, Kuroda-san.
Thanks for your comments.

I agreed that your idea.
I combined them into one function and moved the comments to
the calling function side.
(v2-0001-pgstat_avoid_writing_on_sigquit.patch)

Regards,
--
Masahiro Ikeda
NTT DATA CORPORATION

Attachment Content-Type Size
v2-0001-pgstat_avoid_writing_on_sigquit.patch text/x-diff 6.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhihong Yu 2021-03-16 23:25:48 Re: make the stats collector shutdown without writing the statsfiles if the immediate shutdown is requested.
Previous Message Peter Geoghegan 2021-03-16 22:20:43 Re: New IndexAM API controlling index vacuum strategies