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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust initdb to also not consider fsync'ing failures fatal.
Date: 2015-05-29 17:05:30
Message-ID: E1YyNis-0002TX-VW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c07d8c963e39980f192e8daca73b7585ef76cc9b

Modified Files
--------------
src/bin/initdb/initdb.c | 306 ++++++++++++++++++++++++-----------------------
1 file changed, 155 insertions(+), 151 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-05-29 17:26:27 pgsql: Check that all aliases of a built-in function have same leakproo
Previous Message Tom Lane 2015-05-29 15:57:38 pgsql: Revert exporting of internal GUC variable "data_directory".