git.postgresql.org Git - postgresql.git/commit
2019年11月11日 03:34:01 +0000 (16:34 +1300)
2019年11月11日 04:06:59 +0000 (17:06 +1300)
commit db2687d1f3787aa8113b3dbb358153feee30c64c
Optimize PredicateLockTuple().
PredicateLockTuple() has a fast exit if tuple was written by the current
transaction, as in that case it already has a lock. This check can be
performed using TransactionIdIsCurrentTransactionId() instead of
SubTransGetTopmostTransaction(), to avoid any chance of having to hit the
disk.
Author: Ashwin Agrawal, based on a suggestion from Andres Freund
Reviewed-by: Thomas Munro
Discussion: https://postgr.es/m/CALfoeiv0k3hkEb3Oqk%3DziWqtyk2Jys1UOK5hwRBNeANT_yX%2Bng%40mail.gmail.com
This is the main PostgreSQL git repository.
RSS
Atom