pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: doublem09@googlemail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14001: pg_ctl error output empty/faulty
Date: Sat, 05 Mar 2016 12:00:21 +0000
Message-ID: <20160305120021.2722.16982@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14001
Logged by:          Manuel Mathar
Email address:      doublem09@googlemail.com
PostgreSQL version: 9.5.1
Operating system:   Windows 7 (Enterprise), Windows 10
Description:        

Error messages from pg_ctl can't be piped. Tested for 9.5.1, 9.5.0 and 9.3.5
on Windows 7 and 10.

For a simple "pg_ctl status" an error message concerning the missing "-D"
parameter should be expected. But when reading the standard error with
another program (tested with Qt's QProcess readAllStandardError) or piping
it into a file "pg_ctl status 2> out.txt" the result is empty.

Under Windows 10 error messages don't appear even in the command line (no
problem for Windows 7 here).
E.g. typing "pg_ctl status" in a cmd shell yields no output at all.

After a brief test it seems this can be fixed by correcting the negation 
"if (!pgwin32_is_service())" to "if (pgwin32_is_service())" in pg_ctl.c
write_stderr(...).

Sorry if I misunderstood this or forgot important information. Feel free to
contact me if You have further questions.

Best regards,
Manuel Mathar


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)  latest in thread

Message-ID: <20160305120021.2722.16982@wrigleys.postgresql.org>
Permalink:  ../20160305120021.2722.16982@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160305120021.2722.16982@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: doublem09@googlemail.com
  Subject: Re: BUG #14001: pg_ctl error output empty/faulty
  In-Reply-To: <20160305120021.2722.16982@wrigleys.postgresql.org>
  References: <20160305120021.2722.16982@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox