pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Adjust initdb to also not consider fsync'ing failures fatal.
Date: Fri, 29 May 2015 22:14:52 -0400
Message-ID: <55691D1C.2050905@gmx.net> (raw)
In-Reply-To: <27843.1432929966@sss.pgh.pa.us>
References: <E1YyNis-0002TX-VW@gemulon.postgresql.org>
	<5568C516.6040909@gmx.net>
	<27843.1432929966@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 5/29/15 4:06 PM, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> On 5/29/15 1:05 PM, Tom Lane wrote:
>>> Adjust initdb to also not consider fsync'ing failures fatal.
> 
>> This introduces a failure in the initdb tests, which expect that
>>     initdb -S -D /notthere
>> returns a nonzero exit code.
> 
> Hm, I guess we don't run anything else that touches the DB directory
> in this case?  In the backend case we'd have failed much earlier.

Yeah, in the backend, there are various checks earlier that the data
directory exists.

> I'm not 100% convinced that the test case's expectation is necessarily
> the right thing, though.

Well, I think a tool

    do_something DIRECTORY

that just prints out error messages and says "ok" without an error code
when the directory doesn't exist is a pretty crappy behavior.

The premise of this change was that we don't know what all the files in
the data directory might be, but we do know what the top-level directory
is, so we should treat that properly.



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (6+ messages)

Message-ID: <55691D1C.2050905@gmx.net>
Permalink:  ../55691D1C.2050905@gmx.net/
Also on:    postgresql.org/message-id/55691D1C.2050905@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Adjust initdb to also not consider fsync'ing failures fatal.
  In-Reply-To: <55691D1C.2050905@gmx.net>
  References: <E1YyNis-0002TX-VW@gemulon.postgresql.org> <5568C516.6040909@gmx.net> <27843.1432929966@sss.pgh.pa.us> <55691D1C.2050905@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox