Lists: | pgsql-adminpgsql-hackers |
---|
From: | Jaume Teixi <teixi(at)rocacorbit(dot)com> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org>, <pgsql-admin(at)postgresql(dot)org> |
Subject: | COPY as non super user |
Date: | 2003-01-31 10:13:04 |
Message-ID: | 20030131111304.597a8549.teixi@rocacorbit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin pgsql-hackers |
how should I use " COPY arti FROM 'ARTI.txt' USING DELIMITERS '|' " as normal user ?
From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Jaume Teixi <teixi(at)rocacorbit(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: COPY as non super user |
Date: | 2003-02-01 06:44:53 |
Message-ID: | 20030201064453.GC21857@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin pgsql-hackers |
On Fri, Jan 31, 2003 at 11:13:04 +0100,
Jaume Teixi <teixi(at)rocacorbit(dot)com> wrote:
> how should I use " COPY arti FROM 'ARTI.txt' USING DELIMITERS '|' " as normal user ?
If you are using psql, use the \copy command.
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jaume Teixi <teixi(at)rocacorbit(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: [HACKERS] COPY as non super user |
Date: | 2003-02-02 12:24:50 |
Message-ID: | 200302021224.h12COqF08323@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin pgsql-hackers |
You can't because the backend opens that file as the super-user. You
can use \copy in psql as an normal user, though.
---------------------------------------------------------------------------
Jaume Teixi wrote:
> how should I use " COPY arti FROM 'ARTI.txt' USING DELIMITERS '|' " as normal user ?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
--
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