Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 60a3dff

Browse files
committed
Fix outdated comment.
Multi-insert records observe XLOG_HEAP_INIT_PAGE flag too, as Andres Freund pointed out.
1 parent b58bacd commit 60a3dff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/access/htup.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,15 +593,15 @@ typedef HeapTupleData *HeapTuple;
593593

594594
#define XLOG_HEAP_OPMASK 0x70
595595
/*
596-
* When we insert 1st item on new page in INSERT/UPDATE
597-
* we can (and we do) restore entire page in redo
596+
* When we insert 1st item on new page in INSERT, UPDATE, HOT_UPDATE,
597+
* or MULTI_INSERT, we can (and we do) restore entire page in redo
598598
*/
599599
#define XLOG_HEAP_INIT_PAGE 0x80
600600
/*
601601
* We ran out of opcodes, so heapam.c now has a second RmgrId. These opcodes
602602
* are associated with RM_HEAP2_ID, but are not logically different from
603-
* the ones above associated with RM_HEAP_ID. We apply XLOG_HEAP_OPMASK,
604-
* although currently XLOG_HEAP_INIT_PAGE is not used for any of these.
603+
* the ones above associated with RM_HEAP_ID. XLOG_HEAP_OPMASK applies to
604+
* these, too.
605605
*/
606606
#define XLOG_HEAP2_FREEZE 0x00
607607
#define XLOG_HEAP2_CLEAN 0x10

0 commit comments

Comments
 (0)