diff options
author | Nathan Bossart <nathan@postgresql.org> | 2025-02-11 16:38:14 -0600 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2025-02-11 16:38:14 -0600 |
commit | e5b0b0ce150972bf162a059430d84e5f8e07cf30 (patch) | |
tree | d30a1a2c7245046ddf906e0dd63dd35dcaec9734 /src/backend/utils/adt/array_typanalyze.c | |
parent | d0d649e91685081e6c5334d6d01ab4cd735b397d (diff) | |
download | postgresql-e5b0b0ce150972bf162a059430d84e5f8e07cf30.tar.gz postgresql-e5b0b0ce150972bf162a059430d84e5f8e07cf30.zip |
Add is_analyze parameter to vacuum_delay_point().
This function is used in both vacuum and analyze code paths, and a
follow-up commit will require distinguishing between the two. This
commit forces callers to specify whether they are in a vacuum or
analyze path, but it does not use that information for anything
yet.
Author: Nathan Bossart <nathandbossart@gmail.com>
Co-authored-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/ZmaXmWDL829fzAVX%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/utils/adt/array_typanalyze.c')
-rw-r--r-- | src/backend/utils/adt/array_typanalyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/array_typanalyze.c b/src/backend/utils/adt/array_typanalyze.c index 44a6eb5dad0..6f61629b977 100644 --- a/src/backend/utils/adt/array_typanalyze.c +++ b/src/backend/utils/adt/array_typanalyze.c @@ -314,7 +314,7 @@ compute_array_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc, int distinct_count; bool count_item_found; - vacuum_delay_point(); + vacuum_delay_point(true); value = fetchfunc(stats, array_no, &isnull); if (isnull) |