pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_file_sync() to adminpack extension.
Date: Fri, 24 Jan 2020 11:44:32 +0000
Message-ID: <E1iuxO4-00043E-Vr@gemulon.postgresql.org> (raw)

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...

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(-)



Message-ID: <E1iuxO4-00043E-Vr@gemulon.postgresql.org>
Permalink:  ../E1iuxO4-00043E-Vr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iuxO4-00043E-Vr@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Add pg_file_sync() to adminpack extension.
  In-Reply-To: <E1iuxO4-00043E-Vr@gemulon.postgresql.org>
  References: <E1iuxO4-00043E-Vr@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox