diff options
author | Jeff Davis <jdavis@postgresql.org> | 2025-03-05 23:07:25 -0800 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2025-03-05 23:07:25 -0800 |
commit | 298944e8d80252820531309e5b73d7de7d85e2df (patch) | |
tree | 9b943e036f7724dd78320eb6fe0cbd7e2bd4db64 /src/backend/statistics/stat_utils.c | |
parent | 39de4f157d3ac0b889bb276c2487fe160578f967 (diff) |
Address stats import review comments.
Reported-by: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxHG9MBQozbJQ4JRBcRbUO+t+sx4qLZX092rS_9b4SR_EA@mail.gmail.com
Diffstat (limited to 'src/backend/statistics/stat_utils.c')
-rw-r--r-- | src/backend/statistics/stat_utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/statistics/stat_utils.c b/src/backend/statistics/stat_utils.c index 54ead90b5bb..9647f5108b3 100644 --- a/src/backend/statistics/stat_utils.c +++ b/src/backend/statistics/stat_utils.c @@ -136,12 +136,14 @@ stats_lock_check_privileges(Oid reloid) /* * For indexes, we follow the locking behavior in do_analyze_rel() and - * check_inplace_rel_lock(), which is to lock the table first in - * ShareUpdateExclusive mode and then the index in AccessShare mode. + * check_lock_if_inplace_updateable_rel(), which is to lock the table + * first in ShareUpdateExclusive mode and then the index in AccessShare + * mode. * * Partitioned indexes are treated differently than normal indexes in - * check_inplace_rel_lock(), so we take a ShareUpdateExclusive lock on - * both the partitioned table and the partitioned index. + * check_lock_if_inplace_updateable_rel(), so we take a + * ShareUpdateExclusive lock on both the partitioned table and the + * partitioned index. */ switch (get_rel_relkind(reloid)) { |