PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID15867
PG Version10.9
Opened2019-06-22 00:39:15+00
Reported byEd Sabol

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      15867
Logged by:          Ed Sabol
Email address:      (redacted)
PostgreSQL version: 10.9
Operating system:   RHEL/CentOS 6.9

The psql documentation at 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.).


2019-06-22 00:39:15+00PG Bug reporting formBUG #15867: psql \copy from program does not work
2019-06-22 02:46:36+00Jeff JanesRe: BUG #15867: psql \copy from program does not work
2019-06-22 03:13:42+00"Edward J(dot) Sabol"Re: BUG #15867: psql \copy from program does not work