On Postgres and permissions, cant read a file into a table - Mailing list pgsql-novice

From Lars Forseth
Subject On Postgres and permissions, cant read a file into a table
Date
Msg-id 01032513560700.01239@Yoda
Whole thread Raw
Responses Re: On Postgres and permissions, cant read a file into a table
List pgsql-novice
Hi!
My troubles are not over! Postgres are up and running, but I receive the
following error message in pgaccess when I try to import a file into a table
in postgres:

"COPY "Gravtype" FROM '/home/larsf/DATA/gravtype.txt' USING DELIMITERS '"'

PostgreSQL error mesage:
ERROR: COPY command, running in backend with effective uid 26 could not open
file '/home/larsf/DATA/gravtype.txt' for reading. Errno = Permission denied
(13)."

This indicated some sort of permission trouble, so I first tried to change
the ownership of the file (gravtype.txt) to "postgres"; but it changed
notting; so I figure its' me who's running postgres with insufficent
permissions! But how to change this?

Sorry for these recurring newbie questions, but I cant figure out this from
the documentation.

Regards
larsf

PS; Someone mailed me and said that regarding my previous troubles getting
postgres startet I should have received a mail (root I guess) which should
have explained how to get it going. I cant find such a mail now, so I guess
something failed there to during my overall installation of v 7.0 of SuSE.




--
--------------------------
Lars Forseth
http://www.uio.no/~forseth
MS WIN > /dev/null
TUX rules
--------------------------


pgsql-novice by date:

Previous
From: Tom Strickland
Date:
Subject: how do I CHECK 'field only contains characters 0-9 or space?'
Next
From: Tom Lane
Date:
Subject: Re: On Postgres and permissions, cant read a file into a table