should frontend tools use syncfs() ? - Mailing list pgsql-hackers

From Justin Pryzby
Subject should frontend tools use syncfs() ?
Date
Msg-id 20210930004340.GM831@telsasoft.com
Whole thread Raw
Responses Re: should frontend tools use syncfs() ?  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Forking this thread in which Thomas implemented syncfs for the startup process
(61752afb2).
https://www.postgresql.org/message-id/flat/CA%2BhUKG%2BSG9jSW3ekwib0cSdC0yD-jReJ21X4bZAmqxoWTLTc2A%40mail.gmail.com

Is there any reason that initdb/pg_basebackup/pg_checksums/pg_rewind shouldn't
use syncfs()  ?

do_syncfs() is in src/backend/ so would need to be duplicated^Wimplemented in
common.

They can't use the GUC, so need to add an cmdline option or look at an
environment variable.

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Remove page-read callback from XLogReaderState.
Next
From: Tang, Haiying/唐 海英
Date:
Subject: RE: Logical replication timeout problem