Re: 6.5 data export issues

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: 6.5 data export issues
Дата
Msg-id 20021030152221.V77129-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: 6.5 data export issues  (Darren Ferguson <darren@crystalballinc.com>)
Список 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 по дате отправления:

Предыдущее
От: Boris Köster
Дата:
Сообщение: Yet another free CMS that works with PostgreSQL
Следующее
От: Stuardo Rodriguez
Дата:
Сообщение: testing