From: | "Richard Huxton" <dev(at)archonet(dot)com> |
---|---|
To: | "Bhuvan A" <bhuvanbk(at)yahoo(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: While Using COPY COMMAND ... |
Date: | 2001-07-06 08:41:04 |
Message-ID: | 003e01c105f7$66043fa0$1001a8c0@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
From: "Bhuvan A" <bhuvanbk(at)yahoo(dot)com>
> hello sirs,,
>
> I am using PSQL client. I can able to copy the contents of a
> table to '/tmp/' directory. But Why can't i able to copy
> contents of a table to my home directory?
>
> But, i can redirect the output of a command (\o) to a file
> in my home directory.. How it gets succeed while the prev.
> doesn't????
>
> For your clarifications, here is the workflow.
>
>
> bhuvan=# copy f_addr_phones with oids to
> '/home/bhuvan/fap-table';
> ERROR: COPY command, running in backend with effective uid
> 1015, could not open file '/home/bhuvan/fap-table' for
The "copy" command runs in the backend as user postgres (uid 1015) who quite
rightly doesn't have access to your home directory
Look into \copy instead - that acts from the client, so has your
permissions.
HTH
- Richard Huxton
From | Date | Subject | |
---|---|---|---|
Next Message | Bhuvan A | 2001-07-06 08:48:16 | Re: ConnecDB() -- couldn't send SSL negotiation packet: |
Previous Message | Bhuvan A | 2001-07-06 08:38:48 | Re: While Using COPY COMMAND ... |