]> 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)
commitc07d8c963e39980f192e8daca73b7585ef76cc9b
tree02d621bedd912c7813494dddf946df048c62b6e8
parentda33a3894e0fc440ac53cdc0f2e360e703b13b8c
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