Re: [SQL] Foreign keys breaks tables permissions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [SQL] Foreign keys breaks tables permissions
Date
Msg-id 9733.958929154@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] Foreign keys breaks tables permissions  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> This is perhaps the least undesirable of the choices we have, but it's
>> still a security hole.

> The reason this concerns me is that requiring update rights on the
> referenced table eliminates much the benefit of foreign keys from an
> administration point of view: If the primary keys can be updated freely,
> they no longer constrain the data in the referencing table effectively.

> I suppose we'll have to live with that for now but I'd suggest that it be
> put on the TODO list somewhere.

What we need to do about it is implement the separate REFERENCES right
as specified by SQL92, and then fix FK support to require that right
rather than UPDATE...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: MySQL's "crashme" (was Re: Performance)
Next
From: Tom Lane
Date:
Subject: Re: plperl and the dynamic loader