Re: copy command

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <gsstark(at)mit(dot)edu>
Cc: Jim Bryan <gooddayarizona(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: copy command
Date: 2006-08-27 04:36:53
Message-ID: 17529.1156653413@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory Stark <gsstark(at)mit(dot)edu> writes:
> Jim Bryan <gooddayarizona(at)yahoo(dot)com> writes:
>> "/home/jb/Desktop/DateTimeData.txt" for reading:
>> Permission denied
>>
>> -rw-rw-r-- 1 jb jb 83 Aug 25 14:30
>> DateTimeData.txt

> I suspect it doesn't have "x" permission on some parent directory,

Yeah, user home directories are not normally world-readable in Fedora.
Even if you've made yours readable, the default SELinux policy in FC5
prevents daemons such as the PG postmaster from accessing random parts
of the filesystem.

Consider using psql's \copy instead.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-08-27 04:48:06 jabber.postgresql.org is up
Previous Message Joshua D. Drake 2006-08-27 04:22:59 Cutting the Gborg throat