Fix comment in CheckIndexCompatible().
authorFujii Masao <[email protected]>
Fri, 18 Feb 2022 03:19:10 +0000 (12:19 +0900)
committerFujii Masao <[email protected]>
Fri, 18 Feb 2022 03:19:10 +0000 (12:19 +0900)
Commit 5f173040 removed the parameter "heapRelation" from
CheckIndexCompatible(), but forgot to remove the mention of it
from the comment. This commit removes that unnecessary mention.

Also this commit adds the missing mention of the parameter "oldId"
in the comment.

Author: Yugo Nagata
Reviewed-by: Nathan Bossart, Fujii Masao
Discussion: https://postgr.es/m/20220204014634.b39314f278ff4ae3de96e201@sraoss.co.jp

src/backend/commands/indexcmds.c

index 560dcc87a2c8a47970303ed94b1ef58b98c4fe8c..cd30f15eba694e0f8cc38f4b16671a3722334f4b 100644 (file)
@@ -129,7 +129,7 @@ typedef struct ReindexErrorInfo
  *     prospective index definition, such that the existing index storage
  *     could become the storage of the new index, avoiding a rebuild.
  *
- * 'heapRelation': the relation the index would apply to.
+ * 'oldId': the OID of the existing index
  * 'accessMethodName': name of the AM to use.
  * 'attributeList': a list of IndexElem specifying columns and expressions
  *     to index on.