Adjust initdb to also not consider fsync'ing failures fatal.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: dbde225b144890fb5a40e21f8f624de18ead2f95
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-05-29T17:05:16Z
Releases: 9.4.3
Adjust initdb to also not consider fsync'ing failures fatal.

Make initdb's version of this logic look as much like the backend's
as possible.  This is much less critical than in the backend since not
so many people use "initdb -S", but we want the same corner-case error
handling in both cases.

Back-patch to 9.3 where initdb -S option was introduced.  Before that,
initdb only had to deal with freshly-created data directories, wherein
no failures should be expected.

Abhijit Menon-Sen

Files

PathChange+/−
src/bin/initdb/initdb.c modified +155 −151