From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | "Pedro Doria Meunier" <pdoria(at)netmadeira(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: COPY ... FROM Permission denied ... |
Date: | 2009-01-06 18:48:47 |
Message-ID: | dcc563d10901061048p4ad48e23qbf61f7966dcdd05b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Jan 6, 2009 at 11:41 AM, Pedro Doria Meunier
<pdoria(at)netmadeira(dot)com> wrote:
> Hi All,
>
> This is a bit embarassing ... but ...
>
> I have a partial set of data that I want to restore via COPY ... FROM command
>
> I have created a public folder for the effect and chown'ed both the folder and
> the file to be fed into COPY to a+rw ...
>
> I switched users with su - postgres and connected to the DB with the psql
> command
>
> All I'm getting is a Permission denied upon issuing the COPY command from
> within psql interactive terminal! :O
What is the exact error you're getting?
It's better to usually use copy from stdin which has none of these
problems. It's the same syntax tat pg_dump uses when it creates a
backup.
For example:
COPY b (a_i, b) FROM stdin;
1 moreabc
\.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-01-06 19:12:22 | Re: COPY ... FROM Permission denied ... |
Previous Message | Scott Marlowe | 2009-01-06 18:42:03 | Re: Vacuum problems |