Re: Problem while setting the fpw with SIGHUP

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem while setting the fpw with SIGHUP
Date: 2018-04-20 01:04:02
Message-ID: 20180420010402.GF2024@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 19, 2018 at 07:11:43PM +0530, Amit Kapila wrote:
> On Thu, Apr 19, 2018 at 7:19 AM, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>> And, er, actually, I was thinking again about the case where a user
>> wants to disable full_page_writes temporarily to do some bulk load and
>> then re-enable it. With the patch proposed to actually update the FPW
>> effect at checkpoint time, then a user would need to issue a manual
>> checkpoint after updating the configuration and reloading, which may
>> create more I/O than he'd want to pay for, then a second checkpoint
>> would need to be issued after the configuration comes back again.
>
> Why a second checkpoint? One checkpoint either manual or automatic
> should be enough to make the setting effective.

I was thinking about cases where users have say hourly cron jobs in
charge of doing some maintenance of update cleanups, where they would
need to be sure that full_page_writes are back online after doing the
bulk-load. In this case an extra checkpoint would be necessary to make
the parameter update effective.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2018-04-20 01:08:56 Re: ON CONFLICT DO UPDATE for partitioned tables
Previous Message Peter Geoghegan 2018-04-20 00:52:02 Re: Corrupted btree index on HEAD because of covering indexes