Add is_analyze parameter to vacuum_delay_point().
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/bloom/blvacuum.c | modified | +2 −2 |
| contrib/file_fdw/file_fdw.c | modified | +1 −1 |
| src/backend/access/gin/ginfast.c | modified | +3 −3 |
| src/backend/access/gin/ginvacuum.c | modified | +3 −3 |
| src/backend/access/gist/gistvacuum.c | modified | +1 −1 |
| src/backend/access/hash/hash.c | modified | +1 −1 |
| src/backend/access/heap/vacuumlazy.c | modified | +2 −2 |
| src/backend/access/nbtree/nbtree.c | modified | +1 −1 |
| src/backend/access/spgist/spgvacuum.c | modified | +2 −2 |
| src/backend/commands/analyze.c | modified | +5 −5 |
| src/backend/commands/vacuum.c | modified | +1 −1 |
| src/backend/tsearch/ts_typanalyze.c | modified | +1 −1 |
| src/backend/utils/adt/array_typanalyze.c | modified | +1 −1 |
| src/backend/utils/adt/rangetypes_typanalyze.c | modified | +1 −1 |
| src/include/commands/vacuum.h | modified | +1 −1 |
Discussion
- Track the amount of time waiting due to cost_delay 67 messages · 2024-06-10 → 2025-02-14