pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Inline TransactionIdFollows/Precedes[OrEquals]()
Date: Tue, 14 Oct 2025 21:06:15 +0000
Message-ID: <E1v8mDn-001iJ4-1P@gemulon.postgresql.org> (raw)

Inline TransactionIdFollows/Precedes[OrEquals]()

These functions appeared prominently in a profile of a patch that sets
the visibility map on-access. Inline them to remove call overhead and
make them cheaper to use in hot paths.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl%40mdyyqpqzxjek

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43b05b38ea4d03a0ee9a09f08a9559bc0ca6d7ad

Modified Files
--------------
src/backend/access/transam/transam.c | 64 ---------------------------------
src/include/access/transam.h         | 70 +++++++++++++++++++++++++++++++++---
2 files changed, 66 insertions(+), 68 deletions(-)



Message-ID: <E1v8mDn-001iJ4-1P@gemulon.postgresql.org>
Permalink:  ../E1v8mDn-001iJ4-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v8mDn-001iJ4-1P@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Inline TransactionIdFollows/Precedes[OrEquals]()
  In-Reply-To: <E1v8mDn-001iJ4-1P@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