forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit695c597
committed
Optimize TransactionIdIsCurrentTransactionId().
If the passed in xid is the current top transaction, we can do a fastcheck and exit early. This should work well for the current heap butalso works very well for proposed AMs that don't use a separate xidfor subtransactions.Author: Ashwin Agrawal, based on a suggestion from Andres FreundReviewed-by: Thomas MunroDiscussion:https://postgr.es/m/CALfoeiv0k3hkEb3Oqk%3DziWqtyk2Jys1UOK5hwRBNeANT_yX%2Bng%40mail.gmail.com1 parent9fab25c commit695c597
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
871 | 871 |
| |
872 | 872 |
| |
873 | 873 |
| |
| 874 | + | |
| 875 | + | |
| 876 | + | |
874 | 877 |
| |
875 | 878 |
| |
876 | 879 |
| |
|
0 commit comments
Comments
(0)