]> granicus.if.org Git - postgresql/commit
Adjust initdb to also not consider fsync'ing failures fatal.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 17:05:16 +0000 (13:05 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 17:05:16 +0000 (13:05 -0400)
commitdbde225b144890fb5a40e21f8f624de18ead2f95
tree1e54f2aa1660a6bd84e6d003f8e790984776ebab
parenta3ae3db438db9d0ed66a53264d2f0067d80ae4c9
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
src/bin/initdb/initdb.c