Commit 7689d907 authored by Michael Paquier's avatar Michael Paquier

Fix comment in heapam.c

Improvement per suggestion from Tom Lane.

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/FED18699-4270-4778-8DA8-10F119A5ECF3@yesql.se
parent cebf9d6e
...@@ -2145,7 +2145,7 @@ heap_multi_insert(Relation relation, TupleTableSlot **slots, int ntuples, ...@@ -2145,7 +2145,7 @@ heap_multi_insert(Relation relation, TupleTableSlot **slots, int ntuples,
* that check MUST be done at least past the point of acquiring an * that check MUST be done at least past the point of acquiring an
* exclusive buffer content lock on every buffer that will be affected, * exclusive buffer content lock on every buffer that will be affected,
* and MAY be done after all inserts are reflected in the buffers and * and MAY be done after all inserts are reflected in the buffers and
* those locks are released; otherwise there race condition. Since * those locks are released; otherwise there is a race condition. Since
* multiple buffers can be locked and unlocked in the loop below, and it * multiple buffers can be locked and unlocked in the loop below, and it
* would not be feasible to identify and lock all of those buffers before * would not be feasible to identify and lock all of those buffers before
* the loop, we must do a final check at the end. * the loop, we must do a final check at the end.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment