pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerd König <koenig@transporeon.com>
To: ria ulfa <riakdr@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ask...!!!
Date: Tue, 01 Jul 2008 11:00:51 +0200
Message-ID: <4869F243.8030602@transporeon.com> (raw)
In-Reply-To: <9c3360200807010112g781b4521v88b1fd2c7c400b8c@mail.gmail.com>
References: <9c3360200807010112g781b4521v88b1fd2c7c400b8c@mail.gmail.com>

Hello,

I don't think it's a good idea to store it under the /root directory, 
since "normal" users like e.g. postgres don't have write permission 
there (as the error message tells you).
You have to choose a directory where your database user definitely has 
write permission.

bye-GERD-

ria ulfa schrieb:
> i use linux fedora 7 and database PostgreSQL 8.
> i want to copy table in postgre to a file.
> i used code : simps=# COPY log TO '/root/documents/log.sql';
>       note= simps: name of database
> but there is error:  could not open file "/root/documents/log.sql" for
> writing: Permission denied
> what can i do for repair this error??
> 



view thread (8+ messages)  latest in thread

Message-ID: <4869F243.8030602@transporeon.com>
Permalink:  ../4869F243.8030602@transporeon.com/
Also on:    postgresql.org/message-id/4869F243.8030602@transporeon.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: koenig@transporeon.com, riakdr@gmail.com
  Subject: Re: ask...!!!
  In-Reply-To: <4869F243.8030602@transporeon.com>

* 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