postgresql/src/bin/initdb
Tom Lane 2dc4f011fd In initdb, ensure stdout/stderr buffering behavior is what we expect.
Since this program may print to either stdout or stderr, the relative
ordering of its messages depends on the buffering behavior of those files.
Force stdout to be line-buffered and stderr to be unbuffered, ensuring
that the behavior will match standard Unix interactive behavior, even
when stdout and stderr are rerouted to a file.

Per complaint from Tomas Vondra.  The particular case he pointed out is
new in HEAD, but issues of the same sort could arise in any branch with
other error messages, so back-patch to all branches.

I'm unsure whether we might not want to do this in other client programs
as well.  For the moment, just fix initdb.
2014-05-14 21:14:25 -04:00
..
po Translation updates 2014-05-10 22:16:59 -04:00
t pgindent run for 9.4 2014-05-06 12:12:18 -04:00
.gitignore Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
Makefile Clean up temp installations after client program tests. 2014-04-25 15:40:35 -04:00
findtimezone.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
initdb.c In initdb, ensure stdout/stderr buffering behavior is what we expect. 2014-05-14 21:14:25 -04:00
nls.mk Move rmtree() from libpgport to libpgcommon 2013-10-19 10:20:51 -04:00