Re: COPY access rights

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: COPY access rights
Date: 2002-05-14 23:51:36
Message-ID: 20020514235136.GA11709@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, May 14, 2002 at 02:39:19PM -0400,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Bruno Wolff III <bruno(at)wolff(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jean-Paul ARGUDO 2002-05-15 07:36:43 FAQ - French traduction
Previous Message Eduardo Maldonado 2002-05-14 20:14:06 Official Documentation in Spanish