Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

syslogger.c

Blame
    • Tom Lane's avatar
      f62d4178
      Fix unportable setvbuf() usage in initdb. · f62d4178
      Tom Lane authored
      In yesterday's commit 2dc4f011, I tried
      to force buffering of stdout/stderr in initdb to be what it is by
      default when the program is run interactively on Unix (since that's how
      most manual testing is done).  This tripped over the fact that Windows
      doesn't support _IOLBF mode.  We dealt with that a long time ago in
      syslogger.c by falling back to unbuffered mode on Windows.  Export that
      solution in port.h and use it in initdb.
      
      Back-patch to 8.4, like the previous commit.
      f62d4178
      History
      Fix unportable setvbuf() usage in initdb.
      Tom Lane authored
      In yesterday's commit 2dc4f011, I tried
      to force buffering of stdout/stderr in initdb to be what it is by
      default when the program is run interactively on Unix (since that's how
      most manual testing is done).  This tripped over the fact that Windows
      doesn't support _IOLBF mode.  We dealt with that a long time ago in
      syslogger.c by falling back to unbuffered mode on Windows.  Export that
      solution in port.h and use it in initdb.
      
      Back-patch to 8.4, like the previous commit.