pgsql: Fix initdb --sync-only to also sync tablespaces. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix initdb --sync-only to also sync tablespaces.
Date
Msg-id E1XpRJj-0002jN-Bq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix initdb --sync-only to also sync tablespaces.

630cd14426dc added initdb --sync-only, for use by pg_upgrade, by just
exposing the existing fsync code. That's wrong, because initdb so far
had absolutely no reason to deal with tablespaces.

Fix --sync-only by additionally explicitly syncing each of the
tablespaces.

Backpatch to 9.3 where --sync-only was introduced.

Abhijit Menon-Sen and Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/522c85a6a27b614589543eddb68a4c8f7fcac901

Modified Files
--------------
src/bin/initdb/initdb.c |   63 +++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 61 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Document evaluation-order considerations for aggregate functions
Next
From: Andres Freund
Date:
Subject: pgsql: Fix initdb --sync-only to also sync tablespaces.