Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: ask...!!!
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 5105 of 5411
Post > Topic >>

Re: ask...!!!

by postgresql@[EMAIL PROTECTED] (Tino Schwarze) Jul 1, 2008 at 11:20 AM

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/do***ents/log.sql';
>       note= simps: name of database
> but there is error:  could not open file "/root/do***ents/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."

www.craniosacralzentrum.de
www.forteego.de

-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 6 Posts in Topic:
ask...!!!
riakdr@[EMAIL PROTECTED]   2008-07-01 15:12:39 
ask...!!!
riakdr@[EMAIL PROTECTED]   2008-07-01 15:18:59 
ask...!!!
riakdr@[EMAIL PROTECTED]   2008-07-01 15:19:41 
Re: ask...!!!
koenig@[EMAIL PROTECTED]   2008-07-01 11:00:51 
Re: ask...!!!
postgresql@[EMAIL PROTECT  2008-07-01 11:20:00 
Re: ask...!!!
achill@[EMAIL PROTECTED]   2008-07-01 12:21:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:57:55 CDT 2008.