pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Save a few cycles during nbtree VACUUM.
Date: Thu, 11 Mar 2021 22:19:02 +0000
Message-ID: <E1lKTe2-00060l-J8@gemulon.postgresql.org> (raw)

Save a few cycles during nbtree VACUUM.

Avoid calling RelationGetNumberOfBlocks() unnecessarily in the common
case where there are no deleted but not yet recycled pages to recycle
during a cleanup-only nbtree VACUUM operation.

Follow-up to commit e5d8a999, which (among other things) taught the
"skip full scan" nbtree VACUUM mechanism to only trigger a full index
scan when the absolute number of deleted pages in the index is
considered excessive.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7bb97211a5589265f3f88183ae9353639ab184c6

Modified Files
--------------
src/backend/access/nbtree/nbtree.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)



Message-ID: <E1lKTe2-00060l-J8@gemulon.postgresql.org>
Permalink:  ../E1lKTe2-00060l-J8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lKTe2-00060l-J8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Save a few cycles during nbtree VACUUM.
  In-Reply-To: <E1lKTe2-00060l-J8@gemulon.postgresql.org>
  References: <E1lKTe2-00060l-J8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox