pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: David Steele <david@pgmasters.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Paul Guo <guopa@vmware.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Brown <michael.brown@discourse.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: fdatasync performance problem with large number of DB files
Date: Tue, 22 Jun 2021 13:45:24 +0900
Message-ID: <YNFq5CnFV/HE4Giy@paquier.xyz> (raw)
In-Reply-To: <2589e842-41be-5d83-4616-216acf0a59da@oss.nttdata.com>
References: <ca3983c4-0fb3-a64f-c533-ddba3e36b177@oss.nttdata.com>
	<cb8dc397-3376-3d2e-4be0-b986a1c17e82@oss.nttdata.com>
	<CA+hUKGKgj+SN6z91nVmOmTv2KYrG7VnAGdTkWdSjbOPghdtooQ@mail.gmail.com>
	<7716fafe-fcab-3faf-c337-d1e8c6ae6191@pgmasters.net>
	<CA+hUKG+z+ET2-o8cX5XBqPTNzNUXzMAZKP2YU8cgz53cdC65OA@mail.gmail.com>
	<20210526001359.GE3676@telsasoft.com>
	<20210529192321.GM2082@telsasoft.com>
	<YLnVEvpJ4+ObuUIv@paquier.xyz>
	<20210604143904.GQ14099@telsasoft.com>
	<2589e842-41be-5d83-4616-216acf0a59da@oss.nttdata.com>

On Fri, Jun 18, 2021 at 06:18:59PM +0900, Fujii Masao wrote:
> On 2021/06/04 23:39, Justin Pryzby wrote:
>> You said switching to SIGHUP "would have zero effect"; but, actually it allows
>> an admin who's DB took a long time in recovery/startup to change the parameter
>> without shutting down the service.  This mitigates the downtime if it crashes
>> again.  I think that's at least 50% of how this feature might end up being
>> used.
> 
> Yes, it would have an effect when the server is automatically restarted
> after crash when restart_after_crash is enabled. At least for me +1 to
> your proposed change.

Good point about restart_after_crash, I did not consider that.
Switching recovery_init_sync_method to SIGHUP could be helpful with
that.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (49+ messages)  latest in thread

Message-ID: <YNFq5CnFV/HE4Giy@paquier.xyz>
Permalink:  ../YNFq5CnFV%2FHE4Giy@paquier.xyz/
Also on:    postgresql.org/message-id/YNFq5CnFV/HE4Giy@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, masao.fujii@oss.nttdata.com, pryzby@telsasoft.com, thomas.munro@gmail.com, david@pgmasters.net, bruce@momjian.us, guopa@vmware.com, tgl@sss.pgh.pa.us, michael.brown@discourse.org
  Subject: Re: fdatasync performance problem with large number of DB files
  In-Reply-To: <YNFq5CnFV/HE4Giy@paquier.xyz>
  References: <ca3983c4-0fb3-a64f-c533-ddba3e36b177@oss.nttdata.com> <cb8dc397-3376-3d2e-4be0-b986a1c17e82@oss.nttdata.com> <CA+hUKGKgj+SN6z91nVmOmTv2KYrG7VnAGdTkWdSjbOPghdtooQ@mail.gmail.com> <7716fafe-fcab-3faf-c337-d1e8c6ae6191@pgmasters.net> <CA+hUKG+z+ET2-o8cX5XBqPTNzNUXzMAZKP2YU8cgz53cdC65OA@mail.gmail.com> <20210526001359.GE3676@telsasoft.com> <20210529192321.GM2082@telsasoft.com> <YLnVEvpJ4+ObuUIv@paquier.xyz> <20210604143904.GQ14099@telsasoft.com> <2589e842-41be-5d83-4616-216acf0a59da@oss.nttdata.com> <YNFq5CnFV/HE4Giy@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox