postgresql/src/backend/access
Michael Paquier 06f5295af6 Add single-item cache when looking at topmost XID of a subtrans XID
This change affects SubTransGetTopmostTransaction(), used to find the
topmost transaction ID of a given transaction ID.  The cache is able to
store one value, so as we can save the backend from unnecessary lookups
at pg_subtrans/ on repetitive calls of this routine.  There is a similar
practice in transam.c, for example.

Author: Simon Riggs
Reviewed-by: Andrey Borodin, Julien Rouhaud
Discussion: https://postgr.es/m/CANbhV-G8Co=yq4v4BkW7MJDqVt68K_8A48nAZ_+8UQS7LrwLEQ@mail.gmail.com
2022-04-07 14:34:37 +09:00
..
brin Remove workarounds for avoiding [U]INT64_FORMAT in translatable strings. 2022-03-21 11:11:55 -04:00
common pgstat: normalize function naming. 2022-04-06 21:29:46 -07:00
gin Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
gist Adjust tuplesort API to have bitwise option flags 2022-04-04 22:24:59 +12:00
hash Adjust tuplesort API to have bitwise option flags 2022-04-04 22:24:59 +12:00
heap pgstat: stats collector references in comments. 2022-04-06 13:56:06 -07:00
index Update copyright for 2022 2022-01-07 19:04:57 -05:00
nbtree Suppress "variable 'pagesaving' set but not used" warning. 2022-04-06 17:03:50 -04:00
rmgrdesc pgstat: scaffolding for transactional stats creation / drop. 2022-04-06 18:27:52 -07:00
spgist Update copyright for 2022 2022-01-07 19:04:57 -05:00
table Update copyright for 2022 2022-01-07 19:04:57 -05:00
tablesample Update copyright for 2022 2022-01-07 19:04:57 -05:00
transam Add single-item cache when looking at topmost XID of a subtrans XID 2022-04-07 14:34:37 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00