Re: [SQL] Foreign keys breaks tables permissions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Foreign keys breaks tables permissions
Дата
Msg-id 9733.958929154@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] Foreign keys breaks tables permissions  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: MySQL's "crashme" (was Re: Performance)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: plperl and the dynamic loader