From: Bruno Wolff III <bruno@wolff.to>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-docs@postgresql.org
Subject: Re: COPY access rights
Date: Tue, 14 May 2002 18:51:36 -0500
Message-ID: <20020514235136.GA11709@wolff.to> (raw)
In-Reply-To: <29862.1021401559@sss.pgh.pa.us>
References: <20020514155859.GA2361@wolff.to>
<29862.1021401559@sss.pgh.pa.us>
On Tue, May 14, 2002 at 02:39:19PM -0400,
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Bruno Wolff III <bruno@wolff.to> writes:
> > The 7.2.1 documentation says that either insert or update access is needed
> > to use COPY FROM. However under GRANT the INSERT description says it
> > gives access to COPY FROM, but the UPDATE description doesn't.
>
> The code wants INSERT and nothing but, which seems correct to me since
> COPY FROM is effectively a series of INSERTs. IIRC it used to accept
> UPDATE too; I suspect someone missed this statement in the documentation
> when we changed it.
>
> I see the erroneous statement on the COPY reference page; did you notice
> it anywhere else?
I just saw it on the COPY command reference part of the SQL COMMANDS
section of the documentation.
>
> Now that I look, the GRANT page is confused too: COPY FROM is FROM a
> file, not FROM a table. Will fix.
That was my mistake. It does say COPY TO for insert.
>
> regards, tom lane
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-docs@postgresql.org
Cc: bruno@wolff.to, tgl@sss.pgh.pa.us
Subject: Re: COPY access rights
In-Reply-To: <20020514235136.GA11709@wolff.to>
* 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