From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: edwardjsabol@gmail.com
Subject: BUG #15867: psql \copy from program does not work
Date: Sat, 22 Jun 2019 00:39:15 +0000
Message-ID: <15867-3f48bde7fead3e68@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15867
Logged by: Ed Sabol
Email address: edwardjsabol@gmail.com
PostgreSQL version: 10.9
Operating system: RHEL/CentOS 6.9
Description:
The psql documentation at
https://www.postgresql.org/docs/current/app-psql.html says this should work,
but it does not.
Steps to reproduce:
1. Create a table named "sometable" in some convenient user database:
create table sometable (a1 varchar(100));
2. Execute psql and connect to that database.
3. Issue the following command:
\copy sometable from program '/bin/echo'
The following error message is returned:
program: No such file or directory
If you instead use the server-side COPY command, it works, of course:
copy sometable from program '/bin/echo';
select * from sometable;
Please fix psql \copy to work as documented. There are many use-cases for
running the program on the client-side (file permissions, the existence of
the program, etc.).
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: noreply@postgresql.org, edwardjsabol@gmail.com
Subject: Re: BUG #15867: psql \copy from program does not work
In-Reply-To: <15867-3f48bde7fead3e68@postgresql.org>
References: <15867-3f48bde7fead3e68@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