From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | "Hasan Mokhtari" <mokhtari(at)hadid(dot)sharif(dot)ac(dot)ir> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: help request |
Date: | 2001-03-27 15:19:32 |
Message-ID: | 200103271519.f2RFJW328672@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Hasan Mokhtari" wrote:
> I want to run the following command
> " copy table1 form /tmp/table1.aa using delimiters '|';
>but I cant because I am not 'postgres' user and have not this privilage;
The issue is what the postgres backend can read; the filename given
must be readable by postgres; you can achieve this by the following
Unix command:
chmod a+r /tmp/table1.aa
Then you can use the copy command as above (except that the filename must
be in single quotes):
COPY table1 FROM '/tmp/table1.aa' USING DELIMITERS '|';
> If I use follawing command instead:
> " \copy table1 form /tmp/table1.aa using delimiters '|';
> psql report follawing error :
> "extra token after file name "
\copy does not support "using delimiters"
>what I can do?
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Cast all your anxiety on him, because he cares for
you." I Peter 5:7
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-03-27 15:31:01 | Re: help request |
Previous Message | Tom Lane | 2001-03-27 15:13:38 | Re: Views, indices and pg_dump |