Re: permissions bug in RI checks? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: permissions bug in RI checks?
Date
Msg-id 25665.1283355898@sss.pgh.pa.us
Whole thread Raw
In response to permissions bug in RI checks?  (David Christensen <david@endpoint.com>)
List pgsql-hackers
David Christensen <david@endpoint.com> writes:
> In doing a schema upgrade, we noticed the following behavior, which certainly seems like a bug.  Steps to reproduce:
> ...
> The bug in this case is that "b" has full permissions on all of the
> underlying tables, but runs into issues when trying to access the
> referenced tables.

Permissions checks for RI operations involve the owner of the table,
from whom you've revoked all permissions.  If the RI operations were
done as the caller, as you seem to expect, that would *not* be an
improvement; callers would have to have more privileges than one really
wants.
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Christensen
Date:
Subject: permissions bug in RI checks?
Next
From: "David E. Wheeler"
Date:
Subject: Re: array_agg() NULL Handling