aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/heap/heapam_handler.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2023-03-23 00:12:00 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2023-03-23 00:26:59 +0300
commit764da7710bf68eebb2c0facb2f871bc3c7a705b6 (patch)
tree73541ba0a7ed28fdb43f856d55e2590a72222495 /src/backend/access/heap/heapam_handler.c
parentc75a623304bc361b4456f916d455ea175ffd8055 (diff)
downloadpostgresql-764da7710bf68eebb2c0facb2f871bc3c7a705b6.tar.gz
postgresql-764da7710bf68eebb2c0facb2f871bc3c7a705b6.zip
Evade extra table_tuple_fetch_row_version() in ExecUpdate()/ExecDelete()
When we lock tuple using table_tuple_lock() then we at the same time fetch the locked tuple to the slot. In this case we can skip extra table_tuple_fetch_row_version() thank to we've already fetched the 'old' tuple and nobody can change it concurrently since it's locked. Discussion: https://postgr.es/m/CAPpHfdua-YFw3XTprfutzGp28xXLigFtzNbuFY8yPhqeq6X5kg%40mail.gmail.com Reviewed-by: Aleksander Alekseev, Pavel Borisov, Vignesh C, Mason Sharp Reviewed-by: Andres Freund, Chris Travers
Diffstat (limited to 'src/backend/access/heap/heapam_handler.c')
0 files changed, 0 insertions, 0 deletions