diff options
| author | Nathan Bossart <nathan@postgresql.org> | 2025-11-14 13:20:09 -0600 |
|---|---|---|
| committer | Nathan Bossart <nathan@postgresql.org> | 2025-11-14 13:20:09 -0600 |
| commit | 7506bdbbf45ea757f67162a352196976379ccdd7 (patch) | |
| tree | a7a5533dc551e7e08da0fb9fdb892522e7fb2173 /src/backend/utils/misc/superuser.c | |
| parent | 4c00960772237325bcdf75f1a068c712e392a69b (diff) | |
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
Diffstat (limited to 'src/backend/utils/misc/superuser.c')
0 files changed, 0 insertions, 0 deletions
