]> 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:19:40 +0000 (01:19 +0100)
commit522c85a6a27b614589543eddb68a4c8f7fcac901
tree337dc839e62e90415cd23e74225d9110c3170225
parent98ec7fd903bbd4ab1694de5aaa4f7bb62935c58d
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