Skip to content

Commit 14cdab0

Browse files
committed
Fix incorrect IndexOptInfo header comment
The comment incorrectly indicated that indexcollations[] stored collations for both key columns and INCLUDE columns, but in reality it only has elements for the key columns. canreturn[] didn't get a mention, so add that while we're here. Author: Junwang Zhao <zhjwpku@gmail.com> Reviewed-by: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAEG8a3LwbZgMKOQ9CmZarX5DEipKivdHp5PZMOO-riL0w%3DL%3D4A%40mail.gmail.com Backpatch-through: 14
1 parent 600acd3 commit 14cdab0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/nodes/pathnodes.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,10 @@ typedef struct RelOptInfo
10541054
* IndexOptInfo
10551055
* Per-index information for planning/optimization
10561056
*
1057-
* indexkeys[], indexcollations[] each have ncolumns entries.
1058-
* opfamily[], and opcintype[] each have nkeycolumns entries. They do
1059-
* not contain any information about included attributes.
1057+
* indexkeys[] and canreturn[] each have ncolumns entries.
1058+
*
1059+
* indexcollations[], opfamily[], and opcintype[] each have nkeycolumns
1060+
* entries. These don't contain any information about INCLUDE columns.
10601061
*
10611062
* sortopfamily[], reverse_sort[], and nulls_first[] have
10621063
* nkeycolumns entries, if the index is ordered; but if it is unordered,

0 commit comments

Comments
 (0)