pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: Bruno Scovoli Santos <bruno.scovoli@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: COPY command and required file permissions
Date: Fri, 25 Jun 2010 18:51:26 -0700
Message-ID: <201006251851.26366.adrian.klaver@gmail.com> (raw)
In-Reply-To: <AANLkTikZkslsAs70pU2rIXVQTLv8g3QBw93BJBpjRmAi@mail.gmail.com>
References: <c807ef1a0806120631r7df7800dnb25942ed4ddab740@mail.gmail.com>
	<4C24F765.40008@gmail.com>
	<AANLkTikZkslsAs70pU2rIXVQTLv8g3QBw93BJBpjRmAi@mail.gmail.com>

On Friday 25 June 2010 6:07:35 pm Bruno Scovoli Santos wrote:
> * Are you connecting to the database as a superuser to run the COPY
> command? *
>
> Yes. This \copy command is in the database build script (create table
> blablabla....). So it almost (I think) must have to be a superuser.
>
> But hey, my intent was just to guide the guy (Harold A. Giménez Ch.) to
> follow my practice (to use a preceding backslash). I dont bother to have to
> add that preceding backslash in my script. ;-)
>
>

Actually my question was directed to Harold, I put my reply in the wrong place.
In any case COPY and \copy are different commands. COPY is done from the 
server's perspective, \copy from the clients. Hence the permission issues will 
be different. See below for more detail.

http://www.postgresql.org/docs/8.4/interactive/sql-copy.html
http://www.postgresql.org/docs/8.4/interactive/app-psql.html


-- 
Adrian Klaver
adrian.klaver@gmail.com



view thread (3+ messages)

Message-ID: <201006251851.26366.adrian.klaver@gmail.com>
Permalink:  ../201006251851.26366.adrian.klaver@gmail.com/
Also on:    postgresql.org/message-id/201006251851.26366.adrian.klaver@gmail.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-sql@postgresql.org
  Cc: adrian.klaver@gmail.com, bruno.scovoli@gmail.com
  Subject: Re: COPY command and required file permissions
  In-Reply-To: <201006251851.26366.adrian.klaver@gmail.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