From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | edwardjsabol(at)gmail(dot)com |
Subject: | BUG #15867: psql \copy from program does not work |
Date: | 2019-06-22 00:39:15 |
Message-ID: | 15867-3f48bde7fead3e68@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 15867
Logged by: Ed Sabol
Email address: edwardjsabol(at)gmail(dot)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.).
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-06-22 02:44:33 | Re: BUG #15789: libpq compilation with OpenSSL 1.1.1b fails on Windows with Visual Studio 2017 |
Previous Message | Tom Lane | 2019-06-21 17:27:47 | Re: BUG #15865: ALTER TABLE statements causing "relation already exists" errors when some indexes exist |