From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Craig Sturman <craig(at)eliquid(dot)com> |
Cc: | Darren Ferguson <darren(at)crystalballinc(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: 6.5 data export issues |
Date: | 2002-10-30 23:25:59 |
Message-ID: | 20021030152221.V77129-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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?
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2002-10-30 23:43:54 | Re: Database Design tool |
Previous Message | Boris Köster | 2002-10-30 23:07:43 | Yet another free CMS that works with PostgreSQL |