Re: COPY command error in psql. - Mailing list pgsql-general

From Tom Lane
Subject Re: COPY command error in psql.
Date
Msg-id 28796.1018360243@sss.pgh.pa.us
Whole thread Raw
In response to COPY command error in psql.  (Matthew Stanfield <matthew@propertyknowledge.com>)
List pgsql-general
Matthew Stanfield <matthew@propertyknowledge.com> writes:
> COPY ab FROM '/home/ms/db/csv/AB.csv'
> psql:batchfile:1: Error: Copy command, running in backend with effective
> uid 26, could not open file '/home/ms/db/csv/AB.csv' for reading. Errorno =
> permission denied (13).

> Now I understand why this happened the first time I ran the command as only
> user 'ms' had any kind of permission for AB.csv.

What about permissions on the containing directories?  That path
requires search (x) permission on each directory traversed to reach the
file...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: SPI_execp() failed in RI_FKey_cascade_del()
Next
From: Martijn van Oosterhout
Date:
Subject: Re: COPY command error in psql.