diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-07 11:59:08 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-07 11:59:08 -0300 |
commit | a967613911f7ef7b6387b9e8718f0ab8f0c4d9c8 (patch) | |
tree | 62ec2dd17d9c53a7d3359ba8ee06b0cc97744ba4 /src/backend/access/transam/commit_ts.c | |
parent | dad08994b25b8cd2caa83b2e856fcc940d5e515c (diff) | |
download | postgresql-a967613911f7ef7b6387b9e8718f0ab8f0c4d9c8.tar.gz postgresql-a967613911f7ef7b6387b9e8718f0ab8f0c4d9c8.zip |
Windows: Make pg_ctl reliably detect service status
pg_ctl is using isatty() to verify whether the process is running in a
terminal, and if not it sends its output to Windows' Event Log ... which
does the wrong thing when the output has been redirected to a pipe, as
reported in bug #13592.
To fix, make pg_ctl use the code we already have to detect service-ness:
in the master branch, move src/backend/port/win32/security.c to src/port
(with suitable tweaks so that it runs properly in backend and frontend
environments); pg_ctl already has access to pgport so it Just Works. In
older branches, that's likely to cause trouble, so instead duplicate the
required code in pg_ctl.c.
Author: Michael Paquier
Bug report and diagnosis: Egon Kocjan
Backpatch: all supported branches
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions