From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make TransactionIdIsInProgress check transam.c's single-item XID |
Date: | 2008-03-11 20:20:35 |
Message-ID: | 20080311202035.5AB7475330C@cvs.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
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.
Modified Files:
--------------
pgsql/src/backend/access/transam:
transam.c (r1.73 -> r1.74)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/transam.c?r1=1.73&r2=1.74)
pgsql/src/backend/storage/ipc:
procarray.c (r1.40 -> r1.41)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/procarray.c?r1=1.40&r2=1.41)
pgsql/src/include/access:
transam.h (r1.64 -> r1.65)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/transam.h?r1=1.64&r2=1.65)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2008-03-11 20:28:13 | pgsql: Add URL for: * Reduce storage space for small NUMERICs > |
Previous Message | Bruce Momjian | 2008-03-11 20:16:40 | pgsql: Add: > o Consider normalizing fractions in postgresql.conf, |