Refactor relation_needs_vacanalyze().

Nathan Bossart <nathan@postgresql.org>

Commit: 8261ee24fe332a5042cd4bc3101b4fd99dee6a46
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2026-04-03T19:03:12Z
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@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0s4xjMrB-VAnLccC7kY8d0-4806-Lsac-czJsdA1LXtAw%40mail.gmail.com

Files

PathChange+/−
src/backend/postmaster/autovacuum.c modified +76 −77

Discussion