diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-11 20:20:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-11 20:20:35 +0000 |
commit | 611b4393f22f2bb43135501cd6b7591299b6b453 (patch) | |
tree | 5f9eacf6a35487d9fd164dafa694de7ca699dea4 /src/tutorial/basics.source | |
parent | ba8a9a9282c0c1f962999887bb101b78bd479685 (diff) | |
download | postgresql-611b4393f22f2bb43135501cd6b7591299b6b453.tar.gz postgresql-611b4393f22f2bb43135501cd6b7591299b6b453.zip |
Make TransactionIdIsInProgress check transam.c's single-item XID status cache
before it goes groveling through the ProcArray. In situations where the same
recently-committed transaction ID is checked repeatedly by tqual.c, this saves
a lot of shared-memory searches. And it's cheap enough that it shouldn't
hurt noticeably when it doesn't help.
Concept and patch by Simon, some minor tweaking and comment-cleanup by Tom.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions