pgsql: Make inherited TRUNCATE perform access permission checks on pare

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgsql: Make inherited TRUNCATE perform access permission checks on pare
Дата
Msg-id E1ixC3Z-0007mZ-7e@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a5b652f3a0110f81d2433855ab6bec136f92db83

Modified Files
--------------
src/backend/commands/tablecmds.c         | 70 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 86 insertions(+), 19 deletions(-)


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Make inherited TRUNCATE perform access permission checks on pare
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Make inherited TRUNCATE perform access permission checks on pare