aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-07-04 02:05:37 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-07-04 02:05:37 +0300
commit6897f0ec024582a570868939d3f34a6853374723 (patch)
tree8c9d63f70635cc43061f7b3e4ab8dcad9ee48ec2 /src/backend/parser/parse_expr.c
parent6c1af5482e6943a5f29b7f4ca773c720ec8202b0 (diff)
downloadpostgresql-6897f0ec024582a570868939d3f34a6853374723.tar.gz
postgresql-6897f0ec024582a570868939d3f34a6853374723.zip
Optimize memory access in GetRunningTransactionData()
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
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions