| From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Refactor relation_needs_vacanalyze(). |
| Date: | 2026-04-03 19:03:38 |
| Message-ID: | E1w8jnt-002n8k-2I@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Refactor relation_needs_vacanalyze().
This commit adds an early return to this function, allowing us to
remove a level of indentation on a decent chunk of code. This is
preparatory work for follow-up commits that will add a new system
view to show tables' autovacuum scores.
Reviewed-by: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0s4xjMrB-VAnLccC7kY8d0-4806-Lsac-czJsdA1LXtAw%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8261ee24fe332a5042cd4bc3101b4fd99dee6a46
Modified Files
--------------
src/backend/postmaster/autovacuum.c | 153 ++++++++++++++++++------------------
1 file changed, 76 insertions(+), 77 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-04-03 21:22:31 | pgsql: Online enabling and disabling of data checksums |
| Previous Message | Heikki Linnakangas | 2026-04-03 17:32:04 | pgsql: Remove bogus "safety margin" from predicate.c shmem estimates |