Rename IndexInfo.ii_KeyAttrNumbers array Rename ii_KeyAttrNumbers to ii_IndexAttrNumbers to prevent confusion with ii_NumIndexAttrs/ii_NumIndexKeyAttrs. ii_IndexAttrNumbers contains all attributes including "including" columns, not only key attribute.
Discussion: https://www.postgresql.org/message-id/13123421-1d52-d0e4-c95c-6d69011e0595%40sigaev.ru Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c9c875a28fa6cbc38c227fb9e656dd7be948166f Modified Files -------------- src/backend/catalog/index.c | 24 ++++++++++++------------ src/backend/catalog/toasting.c | 4 ++-- src/backend/commands/analyze.c | 2 +- src/backend/commands/indexcmds.c | 10 +++++----- src/backend/utils/cache/relcache.c | 2 +- src/backend/utils/sort/tuplesort.c | 14 +++++++------- src/include/nodes/execnodes.h | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-)