From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Alain Hermosilla Ringger <ahermosi(at)lonquensur(dot)cl> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: problem with COPY command |
Date: | 2003-11-17 02:09:21 |
Message-ID: | 200311170209.hAH29LE12191@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Alain Hermosilla Ringger wrote:
> I have a problem to populate a database with the copy command
>
> my write command are:
>
> > COPY telefono FROM '/home/alain/Documents/prueba2.txt'
> > WITH DELIMITER AS ',';
>
> The pgsql server answer the following:
>
> > ERROR: COPY command, running in backend with effective uid 26, could
> > not open file '/home/alain/Documents/prueba2.txt' for reading. Errno
> > = Permiso denegado (13).
COPY runs as the owner of the backend process, not of the client. You
can either give the backend owner permission to read the file or psql
\copy, which runs locally.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Randolf Richardson, DevNet SysOp 29 | 2003-11-17 05:31:07 | Re: Expressional Indexes |
Previous Message | Tom Lane | 2003-11-17 00:14:52 | Re: Threads in PSQL |