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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] What user to defaults execute as?
Дата
Msg-id 18244.1036216871@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] What user to defaults execute as?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [GENERAL] What user to defaults execute as?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [GENERAL] What user to defaults execute as?  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The problem is that the more complex you make things, the easier it is
> to make a mistake.  That's why I like our simpler model unless there is
> a glaring problem with it.

I think Bruno's got a good point.  The implementation would be kind of
painful, so I've been trying to think of a reason to object to it, but
so far I don't see one ;-(

The example of a serial column (DEFAULT nextval('foo_seq')) seems
compelling.  You do not really want to grant general-purpose UPDATE
rights on foo_seq to everyone you might allow to INSERT into your
table.

And I have not yet been able to think of a concrete case where the
existing behavior (execute as calling user) is better.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] What user to defaults execute as?
Следующее
От: Steve Howe
Дата:
Сообщение: "Cache lookup failed for relation 16905" ??