From: | Tino Schwarze <postgresql(at)tisc(dot)de> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: ask...!!! |
Date: | 2008-07-01 09:20:00 |
Message-ID: | 20080701092000.GA25625@easy2.in-chemnitz.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, Jul 01, 2008 at 03:12:39PM +0700, ria ulfa wrote:
> 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??
The user running the database (usually postgres) cannot write to root's
home directory. Simply specify another location, e.g. /tmp/log.sql . The
"COPY TO" command is executed by the server process on the server, so
this process needs the permissions to write the file.
HTH,
Tino.
PS: Please send your mail only once - I got it three times.
--
"What we nourish flourishes." - "Was wir nähren erblüht."
From | Date | Subject | |
---|---|---|---|
Next Message | Achilleas Mantzios | 2008-07-01 09:21:14 | Re: ask...!!! |
Previous Message | Glyn Astill | 2008-07-01 09:18:13 | Re: ask...!!! |