From: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
---|---|
To: | Matthew Stanfield <matthew(at)propertyknowledge(dot)com> |
Cc: | PostgreSQL General Mailing List <pgsql-general(at)postgresql(dot)org>, Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
Subject: | COPY command error in psql. |
Date: | 2002-04-09 13:51:45 |
Message-ID: | 15538.61937.278941.768046@kelvin.csl.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
My guess is you've only changed those permissions on the directory &
file in question - not all the directories leading up to it:
chmod a+r /home/ms/db/csv/AB.csv
chmod a+x /home/ms/db/csv /home/ms/db /home/ms
Also, since this not really a PostgreSQL problem, you can test this
without PostgreSQL in the loop:
su - postgres
ls -l /home/ms/db/csv/AB.csv
Lee.
Matthew Stanfield writes:
> I'm trying to import tables in psql but am getting a permission denied
> error. I'm using the '\i file' command as I intend to import 100+ tables
> and want to set this up to run overnight (almost 1 GB of data is going in).
>
> My test for this is not working. I have a 'batch' file the contents of
> which are (at the moment) only:
>
> COPY ab FROM '/home/ms/db/csv/AB.csv'
>
> Table 'ab' exists as does the csv file and I am logged in as 'postgres'.
>
> I am getting this error when I run "\i batchfile":
>
> 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).
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Michel POURE | 2002-04-09 14:06:19 | Re: [GENERAL] PostgreSQL and C# |
Previous Message | Martijn van Oosterhout | 2002-04-09 13:51:21 | Re: COPY command error in psql. |