Re: ExecutorCheckPerms() hook

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ExecutorCheckPerms() hook
Дата
Msg-id 11416.1274881802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ExecutorCheckPerms() hook  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Ответы Re: ExecutorCheckPerms() hook  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
KaiGai Kohei <kaigai@ak.jp.nec.com> writes:
> Hmm. If both REFERENCES and SELECT privilege are required to create
> a new FK constraint, why RI_Initial_Check() need to check SELECT
> permission prior to SPI_execute()?

> It eventually checks SELECT privilege during execution of the secondary
> query. It is unclear for me why we need to provide a slower fallback.

Because the queries inside the triggers are done with a different
current userid.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: mapping object names to role IDs
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Synchronization levels in SR