Code cleanup for heap_freeze_tuple.
Robert Haas <rhaas@postgresql.org>
Code cleanup for heap_freeze_tuple. It used to be case that lazy vacuum could call this function with only a shared lock on the buffer, but neither lazy vacuum nor any other code path does that any more. Simplify the code accordingly and clean up some related, obsolete comments.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +4 −45 |
| src/backend/access/heap/rewriteheap.c | modified | +1 −6 |
| src/backend/commands/vacuumlazy.c | modified | +1 −2 |
| src/include/access/heapam.h | modified | +1 −2 |