summaryrefslogtreecommitdiff
path: root/src/backend/commands/analyze.c
diff options
context:
space:
mode:
authorTeodor Sigaev2018-04-12 10:02:45 +0000
committerTeodor Sigaev2018-04-12 10:02:45 +0000
commitc9c875a28fa6cbc38c227fb9e656dd7be948166f (patch)
tree7ccb3927b72c55294e052999e11bced233b04499 /src/backend/commands/analyze.c
parent9e9befac4a2228ae8a5309900645ecd8ead69f53 (diff)
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
Diffstat (limited to 'src/backend/commands/analyze.c')
-rw-r--r--src/backend/commands/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index d471541097d..25194e871c0 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -495,7 +495,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
tcnt = 0;
for (i = 0; i < indexInfo->ii_NumIndexAttrs; i++)
{
- int keycol = indexInfo->ii_KeyAttrNumbers[i];
+ int keycol = indexInfo->ii_IndexAttrNumbers[i];
if (keycol == 0)
{