Re: 6.5 data export issues - Mailing list pgsql-general

From Stephan Szabo
Subject Re: 6.5 data export issues
Date
Msg-id 20021030152221.V77129-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: 6.5 data export issues  (Darren Ferguson <darren@crystalballinc.com>)
List pgsql-general
On Wed, 30 Oct 2002, Darren Ferguson wrote:

> On Wed, 30 Oct 2002, Craig Sturman wrote:
>
> > Hello all,
> >
> > I've currently got a couple of pg databases (6.5) at work on a RedHat box
> > that I'm looking to consolidate and move to a server with 7.2 installed.
> > I'm having issues with copying the data however.  Neither pg_dump and the
> > copy command are able to copy the data over.  I receive the following error:
> >
> > wdcindex=> COPY clients TO '/home/craig/clients' USING DELIMITERS ',';
> > ERROR:  COPY command, running in backend with effective uid 40, could not
> > open file '/home/craig/clients' for writing.  Errno = Permission denied
> > (13).
> > wdcindex=>
> This error is because the file permissions will not allow opening of it.
>
> Try and use chmod command to give appropriate rwx to the file this will
> solve that problem

More specifically, you're asking the backend to write a file to that
directory, so the user that is running the server needs access not the
user running the client.  You might also want to see if \copy works
instead.

BTW: what does pg_dump give you as an error?


pgsql-general by date:

Previous
From: Boris Köster
Date:
Subject: Yet another free CMS that works with PostgreSQL
Next
From: Stuardo Rodriguez
Date:
Subject: testing