Re: Error from the foreign RDBMS on a foreign table I have no privilege on

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error from the foreign RDBMS on a foreign table I have no privilege on
Дата
Msg-id 1479800.1654657492@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Error from the foreign RDBMS on a foreign table I have no privilege on  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Error from the foreign RDBMS on a foreign table I have no privilege on  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Wed, 2022-06-08 at 11:12 +0900, Kyotaro Horiguchi wrote:
> RangeTblEntry *rte = root->simple_rte_array[i];
> aclcheck_error(ACLCHECK_NO_PRIV,
>    get_relkind_objtype(rte->relkind),
>    get_rel_name(rte->relid));

I think it's completely inappropriate for FDWs to be taking it on
themselves to inject privilege checks.  The system design is that
that is checked at executor start; not before, not after.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How about a psql backslash command to show GUCs?
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Error from the foreign RDBMS on a foreign table I have no privilege on