Confused about rights

From: Perry The Cynic <perry(at)cynic(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: Confused about rights
Date: 2001-07-07 07:14:07
Message-ID: 60114338.3203453647@loki.cynic.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Greetings,

I am just starting to use postgresql (7.0.2, on Debian), and I am rather
confused about how to use its access rights (grant/revoke). Two questions
in particular:

(1) I created a database and table as a super-user, then started to GRANT
away. The first thing I noticed is that UPDATE and DELETE rights are
actually the same in postgresql - did I get that right? So I can't actually
give the right to change anything in a table without also giving the right
to completely erase all rows from it?

(2) The COPY command documentation says that COPY ... FROM STDIN requires
"insert OR update" rights to the table. I tried to set up a non-privileged
user with just INSERT rights on a table, but COPY rejects an attempt to
COPY unless I (also, or just) grant UPDATE rights to that user. I can use
INSERT commands just fine with just INSERT rights, but not COPY. Is that a
feature or a bug? (It is definitely annoying - I wanted to set up a "least
privileged" account for a web server to just dump data into the table, so
it can't possibly change or delete anything once it's stored there.)

I tried to browse/search the mailing list archives and "interactive
documentation", but I guess I don't know the magic keywords to look for...

Thanks
-- perry
---------------------------------------------------------------------------
Perry The Cynic perry(at)cynic(dot)org
To a blind optimist, an optimistic realist must seem like an Accursed Cynic.
---------------------------------------------------------------------------

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message bbakowski 2001-07-07 12:00:41 Postgres and Suse Linux 7.1
Previous Message Jan Wieck 2001-07-06 15:00:14 Re: Cross database foreign keys