Search Postgresql Archives

COPY - permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have used the COPY command dozens of times! I think
I *get* it. But, I'm getting "permission denied"
errors.

This is a fresh install of Fedora Core 4 (x86). I have
Postgresql running under the user postgres. I am
logged into to psql as postgres. The files are owned
by postgres and are -rw-------. They are being found -
it isn't a "file not found" error.

My usual routine is to create a directory at the same
depth/same parent as the cluster directory called
"migrate" and put all my text file of data to load,
there. I chown them to be owned by postgres:postgres,
and chmod 600 them, if necessary. (In this case I
chmod'ed them 777 just grasping at straws).

I have bounced the db, made sure the processes and
files are owned by postgres. What else is there?

COPY consult FROM
'/var/lib/pgsql/migrate/consult.txt';


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux