Re: Is a SERIAL column a "black box", or not?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Is a SERIAL column a "black box", or not?
Дата
Msg-id 20060430155213.GA6784@wolff.to
обсуждение исходный текст
Ответ на Re: Is a SERIAL column a "black box", or not?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Is a SERIAL column a "black box", or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Apr 30, 2006 at 12:28:50 +0200,
> 
> Since a real stumbling block with the macro approach seems to be the
> granting of permissions maybe we should work on that problem. For
> example, making SERIAL be a macro that expands to:
> 
> id integer default nextval(sequence) SECURITY DEFINER,
> 
> Which would mean that the default expression would be executed as the
> creator of the table, thus obviating the need to grant explicit
> permission to the sequence.

I suggested a long time ago that default expressions should always be
executed as the owner of the table. This got shot down, but I don't remember
if it was because people thought the idea was bad in itself or if it was
the work involved (which I wasn't in a position to do).


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Constraint Exclusion + Joins?
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: Is a SERIAL column a "black box", or not?