Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aco8U-0007VZ-Nu for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Mar 2016 05:55:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aco8T-0001Gr-JY for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Mar 2016 05:55:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1acAtN-0005e8-6k for pgsql-bugs@postgresql.org; Sat, 05 Mar 2016 12:01:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1acAtL-0004cH-0x for pgsql-bugs@postgresql.org; Sat, 05 Mar 2016 12:01:04 +0000 MIME-Version: 1.0 Subject: BUG #14001: pg_ctl error output empty/faulty To: pgsql-bugs@postgresql.org From: doublem09@googlemail.com Date: Sat, 05 Mar 2016 12:00:21 +0000 Message-ID: <20160305120021.2722.16982@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.1 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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