Re: Offline enabling/disabling of data checksums - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Offline enabling/disabling of data checksums
Date
Msg-id alpine.DEB.2.21.1903221859220.18811@lancre
Whole thread Raw
In response to Re: Offline enabling/disabling of data checksums  (Christoph Berg <myon@debian.org>)
Responses Re: Offline enabling/disabling of data checksums
List pgsql-hackers
Hello Christoph,

>> -    pg_log(PG_PROGRESS, "syncing target data directory\n");
>> -    syncTargetDirectory();
>
> Doesn't the control file still need syncing?

Indeed it does, and it is done in update_controlfile if the last argument 
is true. Basically update_controlfile latest version always fsync the 
control file, unless explicitely told not to do so. The options to do that 
are really there only to speed up non regression tests.

-- 
Fabien.


pgsql-hackers by date:

Previous
From: Thibaut Madelaine
Date:
Subject: Re: Problem with default partition pruning
Next
From: Robert Haas
Date:
Subject: Re: Ordered Partitioned Table Scans