mirror of https://github.com/postgres/postgres
e85662df44 made GetRunningTransactionData() calculate the oldest running
transaction id within the current database. This commit optimized this
calculation by performing a cheap transaction id comparison before fetching
the process database id, while the latter could cause extra cache misses.
Reported-by: Noah Misch
Discussion: https://postgr.es/m/20240630231816.bf.nmisch%40google.com
pull/166/head
parent
6c1af5482e
commit
6897f0ec02
Loading…
Reference in new issue