From: chris <cbbrowne@ca.afilias.info>
To: pgsql-admin@postgresql.org
Subject: Re: answer my question, please!!!
Date: Fri, 18 Jul 2008 15:48:06 -0400
Message-ID: <87iqv3ug7d.fsf@dba2.int.libertyrms.com> (raw)
References: <9c3360200807180229u16c49b30m442f0937cf29d59f@mail.gmail.com>
riakdr@gmail.com ("ria ulfa") writes:
> i want to copy table from file with command:
> COPY log FROM '/tmp/logfile.txt';
> but there is error:
> ERROR: could not open file "/tmp/logfile.txt" for reading: Permission denied
> what can i do for repair this error??
> thanks for the answer..
It's worth observing that the louder the demands are in the subject
line, the less likely that people are to *want* to volunteer
assistance.
The problem here is that COPY accesses data as whatever Unix user is
running the database, typically "postgres" or "pgsql".
Presumably that user hasn't rights to access the file
"/tmp/logfile.txt". Perhaps that needs to be changed.
--
select 'cbbrowne' || '@' || 'linuxfinances.info';
http://cbbrowne.com/info/lsf.html
Rules of the Evil Overlord #145. "My dungeon cell decor will not
feature exposed pipes. While they add to the gloomy atmosphere, they
are good conductors of vibrations and a lot of prisoners know Morse
code." <http://www.eviloverlord.com/;
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: cbbrowne@ca.afilias.info
Subject: Re: answer my question, please!!!
In-Reply-To: <87iqv3ug7d.fsf@dba2.int.libertyrms.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