Re: [RFC] Should we fix postmaster to avoid slow shutdown? - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Re: [RFC] Should we fix postmaster to avoid slow shutdown?
Date
Msg-id CAFjFpRftFzZ+wdnRJ6EbNTcdZkDF5_KVpFAf5NB07LQ41Dy31Q@mail.gmail.com
Whole thread Raw
In response to Re: [RFC] Should we fix postmaster to avoid slow shutdown?  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
List pgsql-hackers
>
> I also find others's ideas woth considering -- WAL-logging the stats files, type-specific stats files, etc. -- but
I'mafraid those ideas would only be employed in a new major release, not in released versions.  I'm asking for a remedy
fora user (and potential users) who use older releases.  And, I don't yet understand why patch would make the situation
forexisting users, and why stop writing files during immediate/abnormal shutdown requires other efforts. 
>
I agree with this. I don't think we are going to change stats file
management in older versions. Hence after every crash recovery they
will be thrown away. In that case, why should stats collector in the
older versions wait for those files to be flushed to the disk? I
think, we should apply patch to shut down stats collector immediately
to the older versions and implement the stats file management solution
to the head. Why isn't that a feasible option?

--
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel execution and prepared statements
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] postgres 1 个(共 2 个) can pg 9.6 vacuum freeze skip page on index?