From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix initdb --sync-only to also sync tablespaces. |
Date: | 2014-11-15 00:34:22 |
Message-ID: | E1XpRJm-0002k3-KS@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/f52b3c44632f99d53973be57e5c729cfc3d6430f
Modified Files
--------------
src/bin/initdb/initdb.c | 63 +++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 61 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-11-15 00:34:27 | pgsql: Backport "Expose fsync_fname as a public API". |
Previous Message | Andres Freund | 2014-11-15 00:34:19 | pgsql: Sync unlogged relations to disk after they have been reset. |