diff options
author | Andres Freund <andres@anarazel.de> | 2022-07-18 17:06:34 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-07-18 17:22:36 -0700 |
commit | c91a216ef7385e78e7eb80355c4d02953711bdba (patch) | |
tree | f6d0530696e04b5be3aee0c4d9d6606e414ab6a4 /src/backend/utils/adt/jsonpath_exec.c | |
parent | 92f478657c5544eba560047c39eba8a030ddb83e (diff) | |
download | postgresql-c91a216ef7385e78e7eb80355c4d02953711bdba.tar.gz postgresql-c91a216ef7385e78e7eb80355c4d02953711bdba.zip |
Use STDOUT/STDERR_FILENO in most of syslogger.
This fixes problems on windows when logging collector is used in a service,
failing with:
FATAL: could not redirect stderr: Bad file descriptor
This is triggered by 76e38b37a5. The problem is that STDOUT/STDERR_FILENO
aren't defined on windows, which lead us to use _fileno(stdout) etc, but that
doesn't work if stdout/stderr are closed.
Author: Andres Freund <andres@anarazel.de>
Reported-By: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Message-Id: 20220520164558.ozb7lm6unakqzezi@alap3.anarazel.de (on pgsql-packagers)
Backpatch: 15-, where 76e38b37a5 came in
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions