On 12/7/2016 3:28 PM, David G. Johnston
wrote:
AND, COPY table from filename only works at the *SERVER* level, not at the user level, and can only be done by a database superuser. the database server likely has no right to access files on your desktop. In the psql shell, you can use \copy to do this, that actually does a COPY table FROM stdin; then the psql client reads your file and pipes it to that COPY command, so the file is read by the client, and not the server.
-- john r pierce, recycling bits in santa cruz |