Tomas Vondra <tv@fuzzy.cz> writes:
> On 13.5.2014 23:07, Tom Lane wrote:
>> Attached is a draft patch that behaves like this:
>>
>> $ initdb --locale=foo
>> The files belonging to this database system will be owned by user "postgres".
>> This user must also own the server process.
>>
>> initdb: invalid locale name "foo"
> I see the committed patch actually behaves like this:
> initdb: invalid locale name "cs_CZ.WIN-1250"
> The files belonging to this database system will be owned by user
> "pgbuild".
> This user must also own the server process.
> (at least that's what magpie logged at [1]). I find that confusing,
Interesting. I guess stdout isn't getting fflush'd soon enough when
it's going to a file. We should probably mark it as line-buffered
so the behavior is consistent with the interactive case.
regards, tom lane