]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Refactor relation_needs_vacanalyze().
authorNathan Bossart <nathan@postgresql.org>
Fri, 3 Apr 2026 19:03:12 +0000 (14:03 -0500)
committerNathan Bossart <nathan@postgresql.org>
Fri, 3 Apr 2026 19:03:12 +0000 (14:03 -0500)
commit8261ee24fe332a5042cd4bc3101b4fd99dee6a46
tree3e5cbaff10630bd8e36b9109d4e97c3c893c2860
parent79534f90657c37c5238e5341a111dedd26d9c0fb
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
src/backend/postmaster/autovacuum.c