From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jim_gray@cox.net
Subject: BUG #16304: ECPG won't accept input from STDIN
Date: Mon, 16 Mar 2020 20:48:22 +0000
Message-ID: <16304-c662b00a1322db7f@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16304
Logged by: James Gray
Email address: jim_gray@cox.net
PostgreSQL version: 11.5
Operating system: AIX
Description:
On an older version (9.6.3) of Postgres on CentOS 7.7.1908, ECPG accepts
input from STDIN:
[singha7] (jgray) ~> psql --version
psql (PostgreSQL) 9.6.3
[singha7] (jgray) ~>
[singha7] (jgray) ~> ecpg -o - -
/* Processed by ecpg (4.12.0) */
/* These include files are added by the preprocessor */
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
/* End of automatic include section */
#line 1 "stdin"
^C
[singha7] (jgray) ~>
On a newer version (11.5) of Postgres on AIX 7.2, ECPG does NOT accept input
from STDIN:
bash-5.0$ psql --version
psql (PostgreSQL) 11.5
bash-5.0$
bash-5.0$ ecpg -o - -
Try "ecpg --help" for more information.
bash-5.0$
I suspect a problem in the Postgres version of getopt_long.c
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, jim_gray@cox.net
Subject: Re: BUG #16304: ECPG won't accept input from STDIN
In-Reply-To: <16304-c662b00a1322db7f@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