pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bhuvan A <bhuvanbk@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: While Using COPY COMMAND ...
Date: Fri, 6 Jul 2001 12:05:22 +0530 (IST)
Message-ID: <Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks> (raw)
In-Reply-To: <005201c103dc$0b82e260$1001a8c0@archonet.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
writing.  Errno = Permission denied (13).
bhuvan=# copy f_addr_phones with oids to '/tmp/fap-table';
COPY
bhuvan=# 

------







view thread (5+ messages)  latest in thread

Message-ID: <Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks>
Permalink:  ../Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks/
Also on:    postgresql.org/message-id/Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: bhuvanbk@yahoo.com
  Subject: Re: While Using COPY COMMAND ...
  In-Reply-To: <Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks>
  References: <005201c103dc$0b82e260$1001a8c0@archonet.com> <Pine.LNX.4.20.0107061153150.10925-100000@Larry.bks>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox