Back-patch Heikki's fix to make TransactionIdIsCurrentTransactionId() use
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +1 −2 |
| src/backend/access/transam/xact.c | modified | +126 −58 |