[bugfix] sepgsql missed a case of CREATE TABLE AS

Поиск
Список
Период
Сортировка
От Kohei KaiGai
Тема [bugfix] sepgsql missed a case of CREATE TABLE AS
Дата
Msg-id CADyhKSVWKjCKY3cDeQG6qp7OczqsbJtT9cihk3HB7TkvcEDD+Q@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
The attached patch fixes a bug in sepgsql module.
Could you apply both v9.2 and master branch?

When post_create hook is invoked, sepgsql's handler checks
whether the current invocation context needs to have permission
checks according to the command-tag saved on ProcessUtility_hook.

But it overlooked T_CreateTableAs tag, thus, neither of security
label nor permission checks were applied, as if the routine did
on toast relation.
This patch adds this command tag as a context to check permissions.

Thanks,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Yet another failure mode in pg_upgrade
Следующее
От: Kohei KaiGai
Дата:
Сообщение: [bugfix] sepgsql didn't follow the latest core API changes