aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-14 21:13:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-14 21:13:56 -0400
commit4511e6c831e3d16303d6df183a00d33f5d6ba3e8 (patch)
treed4a64075573f4fb1251c30ad2de5748cc06aa5b9 /src/tutorial/funcs.source
parente7a9020939c9f09eddf6cf2f5477f82a1efcbf09 (diff)
downloadpostgresql-4511e6c831e3d16303d6df183a00d33f5d6ba3e8.tar.gz
postgresql-4511e6c831e3d16303d6df183a00d33f5d6ba3e8.zip
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.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions