From: =?UTF-8?q?=C3=81lvaro=20Herrera?= Date: Wed, 1 Apr 2026 20:31:28 +0200 Subject: [PATCH v6 1/2] Move heapam.h-specific flag bit This avoids possible future collisions. --- src/include/access/heapam.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index 54067b828e4..a542e89fd29 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -36,7 +36,11 @@ #define HEAP_INSERT_SKIP_FSM TABLE_INSERT_SKIP_FSM #define HEAP_INSERT_FROZEN TABLE_INSERT_FROZEN #define HEAP_INSERT_NO_LOGICAL TABLE_INSERT_NO_LOGICAL -#define HEAP_INSERT_SPECULATIVE 0x0010 +/* + * private flag bits for heap_insert: we define these starting from the + * opposite end of the options word as the ones in tableam.h. + */ +#define HEAP_INSERT_SPECULATIVE (1 << 31) /* "options" flag bits for heap_page_prune_and_freeze */ #define HEAP_PAGE_PRUNE_MARK_UNUSED_NOW (1 << 0) -- 2.47.3 --iit4jcttjj2egee5 Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="v6-0002-Define-heap_insert-to-obey-tableam.h-option-bits-.patch"