pgsql: Back-patch Heikki's fix to make

Started by Tom Laneabout 18 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Log Message:
-----------
Back-patch Heikki's fix to make TransactionIdIsCurrentTransactionId() use
binary search instead of linear search when checking child-transaction XIDs.
Per example from Robert Treat, the speed of TransactionIdIsCurrentTransactionId
is significantly more important in 8.3 than it was in prior releases, so
this seems worth taking back-patching risk for.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/access/transam:
twophase.c (r1.39 -> r1.39.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/twophase.c?r1=1.39&r2=1.39.2.1)
xact.c (r1.257.2.1 -> r1.257.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xact.c?r1=1.257.2.1&r2=1.257.2.2)