From: | Fujii Masao <fujii(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add pg_file_sync() to adminpack extension. |
Date: | 2020-01-24 11:44:32 |
Message-ID: | E1iuxO4-00043E-Vr@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2020-01-24 18:08:49 | pgsql: Adjust src/include/utils/jsonapi.h so it's not backend-only. |
Previous Message | Peter Eisentraut | 2020-01-24 11:24:44 | pgsql: Add exclusion to headercheck |