Re: Smaller access privilege changes

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Smaller access privilege changes
Date: 2001-05-24 17:57:50
Message-ID: 200105241757.f4OHvotb008737@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
>Since there is no plan yet how to do a wholesale overhaul of the ACL
>system, I'd like to stick a few improvements into the current
>implementation:

>* COPY FROM will require INSERT privilege. It used to require
> UPDATE/DELETE, it think that is not correct..

COPY FROM should require either INSERT or UPDATE or both according to
what rows are being copied. If a copied primary key already exists,
that will be an update. I don't see any reason to give COPY FROM any
special treatment - surely it should succeed or fail according to
whether what it is trying to do is within the user's privileges.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"I will praise thee; for I am fearfully and wonderfully
made..." Psalms 139:14

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Poul L. Christiansen 2001-05-24 18:02:47 Re: Shared memory for RH Linux 7.1
Previous Message Mikheev, Vadim 2001-05-24 17:57:19 RE: Plans for solving the VACUUM problem