Add pg_file_sync() to adminpack

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Add pg_file_sync() to adminpack
Date: 2019-12-25 13:00:36
Message-ID: CAHGQGwGY8uzZ_k8dHRoW1zDcy1Z7=5GQ+So4ZkVy2u=nLsk=hA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I'd like to propose to add pg_file_sync() function into contrib/adminpack.
This function fsyncs the specified file or directory named by its argument.
IMO this is useful, for example, when you want to fsync the file that
pg_file_write() writes out or that COPY TO exports the data into,
for durability. Thought?

Regards,

--
Fujii Masao

Attachment Content-Type Size
pg_file_sync_v1.patch application/octet-stream 6.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Abbas Butt 2019-12-25 13:02:14 How to test GSSAPI based encryption support
Previous Message Masahiko Sawada 2019-12-25 12:17:16 Re: [HACKERS] Block level parallel vacuum