pgsql: Consolidate nbtree VACUUM metapage routines.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Consolidate nbtree VACUUM metapage routines.
Date: 2021-03-12 21:14:23
Message-ID: E1lKp71-0006bm-EB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02b5940dbea17d07a1dbcba3cbe113cc8b70f228

Modified Files
--------------
src/backend/access/nbtree/nbtpage.c | 66 +++++++++++++++++++++++++++++++++----
src/backend/access/nbtree/nbtree.c | 63 +----------------------------------
src/include/access/nbtree.h | 1 +
3 files changed, 61 insertions(+), 69 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2021-03-12 22:37:11 pgsql: Fix portability issues in pg_amcheck's 004_verify_heapam.pl.
Previous Message Erik Rijkers 2021-03-12 20:18:34 Re: pgsql: Try to fix compiler warnings.