pgsql: Add note about CreateStatistics()'s selective use of check_right

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема pgsql: Add note about CreateStatistics()'s selective use of check_right
Дата
Msg-id E1vJzLg-006c9w-2n@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add note about CreateStatistics()'s selective use of check_rights.

Commit 5e4fcbe531 added a check_rights parameter to this function
for use by ALTER TABLE commands that re-create statistics objects.
However, we intentionally ignore check_rights when verifying
relation ownership because this function's lookup could return a
different answer than the caller's.  This commit adds a note to
this effect so that we remember it down the road.

Reviewed-by: Noah Misch <noah@leadboat.com>
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/505ce19a205add23934f61bbced98a1b9a74ec1f

Modified Files
--------------
src/backend/commands/statscmds.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)


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