Consolidate nbtree VACUUM metapage routines.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 12 Mar 2021 21:11:47 +0000 (13:11 -0800)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 12 Mar 2021 21:11:47 +0000 (13:11 -0800)
commit02b5940dbea17d07a1dbcba3cbe113cc8b70f228
tree72d294a7be5011d767551726d1f691c98c0d2343
parentac445955852fe6bc0e02e87a409f25ab6e0a82d6
Consolidate nbtree VACUUM metapage routines.

Simplify _bt_vacuum_needs_cleanup() functions's signature (it only needs
a single 'rel' argument now), and move it next to its sibling function
in nbtpage.c.

I believe that _bt_vacuum_needs_cleanup() was originally located in
nbtree.c due to an include dependency issue.  That's no longer an issue.

Follow-up to commit 9f3665fb.
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtree.c
src/include/access/nbtree.h