Re: [GENERAL] What user to defaults execute as?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: [GENERAL] What user to defaults execute as?
Дата
Msg-id 20021102055542.GA3848@wolff.to
обсуждение исходный текст
Ответ на Re: [GENERAL] What user to defaults execute as?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [GENERAL] What user to defaults execute as?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Fri, Nov 01, 2002 at 21:35:40 -0500, Bruce Momjian <pgman@candle.pha.pa.us> wrote:
> 
> I think we open up more security problems by having the inserter doing
> things as the owner of the table.

With triggers it is a bit hard to decide. Since people other than the
table owner can create them, but then they effectively belong to the
table owner. I think that makes having them execute as the table
owner reasonable. The table owner is taking his chances by letting
other people create triggers on his table.

For constraints and default expressions I don't see any problems for
having them execute as the table owner. This provides a small advantage
in providing limited update ability for sequences, that would otherwise
require creating a function to achieve.

As long as people realize that when they insert, update or delete from
a table owned by someone else they need to trust that person it probably
isn't a big deal. The descriptions of triggers hint at this but from
a different perspective (that of a table owner letting people create
triggers on his table) and people might not make the connection (assuming
they even read about triggers).


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: about postgresql-7.2.3 rpm
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] What user to defaults execute as?