| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Inline TransactionIdFollows/Precedes[OrEquals]() |
| Date: | 2025-10-14 21:06:15 |
| Message-ID: | E1v8mDn-001iJ4-1P@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2025-10-14 21:44:56 | pgsql: Make heap_page_is_all_visible independent of LVRelState |
| Previous Message | Melanie Plageman | 2025-10-14 19:09:50 | pgsql: Add helper for freeze determination to heap_page_prune_and_freez |