]> granicus.if.org Git - postgresql/commit
Fix initdb --sync-only to also sync tablespaces.
authorAndres Freund <andres@anarazel.de>
Fri, 14 Nov 2014 17:22:12 +0000 (18:22 +0100)
committerAndres Freund <andres@anarazel.de>
Sat, 15 Nov 2014 00:20:07 +0000 (01:20 +0100)
commitf52b3c44632f99d53973be57e5c729cfc3d6430f
treec483a7731581ec53af66c832b4df63222a3c56d3
parente26a920acb77b953d1034e243d6a8c7294dbd25d
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
src/bin/initdb/initdb.c