0001-indexcollations-length-should-be-nkeycolumns.patch

application/octet-stream

Filename: 0001-indexcollations-length-should-be-nkeycolumns.patch
Type: application/octet-stream
Part: 0
Message: Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch 0001
Subject: indexcollations length should be nkeycolumns
File+
src/include/nodes/pathnodes.h 4 3
From bbff99cd2a1718178201667347401faa294cb1e1 Mon Sep 17 00:00:00 2001
From: Junwang Zhao <zhjwpku@gmail.com>
Date: Sat, 22 Nov 2025 20:36:19 +0800
Subject: [PATCH] indexcollations length should be nkeycolumns

---
 src/include/nodes/pathnodes.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h
index 30d889b54c5..addafe3dcd7 100644
--- a/src/include/nodes/pathnodes.h
+++ b/src/include/nodes/pathnodes.h
@@ -1216,9 +1216,10 @@ typedef struct RelAggInfo
  * IndexOptInfo
  *		Per-index information for planning/optimization
  *
- *		indexkeys[], indexcollations[] each have ncolumns entries.
- *		opfamily[], and opcintype[]	each have nkeycolumns entries. They do
- *		not contain any information about included attributes.
+ *		indexkeys[] has ncolumns entries.
+ *
+ *		indexcollations[], opfamily[], and opcintype[] each have nkeycolumns
+ *		entries. They do not contain any information about included attributes.
  *
  *		sortopfamily[], reverse_sort[], and nulls_first[] have
  *		nkeycolumns entries, if the index is ordered; but if it is unordered,
-- 
2.41.0