postgresql/src
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
..
backend Add single-item cache when looking at topmost XID of a subtrans XID 2022-04-07 14:34:37 +09:00
bin pgstat: remove stats_temp_directory. 2022-04-06 21:29:46 -07:00
common Fix possible NULL-pointer-deference in backup_compression.c. 2022-03-30 15:53:08 -04:00
fe_utils Allow pgbench to retry in some cases. 2022-03-23 19:05:45 +09:00
include pgstat: rename STATS_COLLECTOR GUC group to STATS_CUMULATIVE. 2022-04-06 21:29:46 -07:00
interfaces libpq: Fix pkg-config without OpenSSL 2022-04-01 17:15:24 +02:00
makefiles Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pl Keep plpgsql.h C++-clean. 2022-03-31 18:29:10 -04:00
port Simplify coding around path_contains_parent_reference(). 2022-01-31 13:53:38 -05:00
template Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
test pgstat: remove stats_temp_directory. 2022-04-06 21:29:46 -07:00
timezone Update copyright for 2022 2022-01-07 19:04:57 -05:00
tools pgstat: store statistics in shared memory. 2022-04-06 21:29:46 -07:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Update Unicode data to CLDR 41 2022-04-06 08:17:33 +02:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk Add errhint_plural() function and make use of it 2021-03-31 09:16:25 +02:00