pgsql: Add pg_file_sync() to adminpack extension. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Add pg_file_sync() to adminpack extension.
Date
Msg-id E1iuxO4-00043E-Vr@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add pg_file_sync() to adminpack extension.

This function allows us to fsync the specified file or directory.
It's useful, for example, when we want to sync the file that
pg_file_write() writes out or that COPY TO exports the data into,
for durability.

Author: Fujii Masao
Reviewed-By: Julien Rouhaud, Arthur Zakirov, Michael Paquier, Atsushi Torikoshi
Discussion: https://www.postgresql.org/message-id/CAHGQGwGY8uzZ_k8dHRoW1zDcy1Z7=5GQ+So4ZkVy2u=nLsk=hA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d694e0bb793ebd6b392e6ef6a3b0a59ae66cbc95

Modified Files
--------------
contrib/adminpack/Makefile                |  3 ++-
contrib/adminpack/adminpack--2.0--2.1.sql | 17 +++++++++++++++++
contrib/adminpack/adminpack.c             | 25 +++++++++++++++++++++++++
contrib/adminpack/adminpack.control       |  2 +-
contrib/adminpack/expected/adminpack.out  | 17 +++++++++++++++++
contrib/adminpack/sql/adminpack.sql       |  6 ++++++
doc/src/sgml/adminpack.sgml               | 19 +++++++++++++++++++
src/backend/storage/file/fd.c             |  3 +--
src/include/storage/fd.h                  |  1 +
9 files changed, 89 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix typo
Next
From: Robert Haas
Date:
Subject: pgsql: Adjust src/include/utils/jsonapi.h so it's not backend-only.