Fix setrefs.c comment properly.
authorTom Lane <[email protected]>
Thu, 10 Sep 2015 14:25:58 +0000 (10:25 -0400)
committerTom Lane <[email protected]>
Thu, 10 Sep 2015 14:26:20 +0000 (10:26 -0400)
The "typo" alleged in commit 1e460d4bd was actually a comment that was
correct when written, but I missed updating it in commit b5282aa89.
Use a slightly less specific (and hopefully more future-proof) description
of what is collected.  Back-patch to 9.2 where that commit appeared, and
revert the comment to its then-entirely-correct state before that.

src/backend/optimizer/plan/setrefs.c

index 3181ce6977fd37c6d970463785ec10cf8bf0b7f9..b2674bd67aaf0b16d3ab8f04953be93eef0cd2ba 100644 (file)
@@ -915,7 +915,7 @@ copyVar(Var *var)
  * This is code that is common to all variants of expression-fixing.
  * We must look up operator opcode info for OpExpr and related nodes,
  * add OIDs from regclass Const nodes into root->glob->relationOids, and
- * add catalog OIDs for user-defined functions into root->glob->invalItems.
+ * add PlanInvalItems for user-defined functions into root->glob->invalItems.
  *
  * We assume it's okay to update opcode info in-place.  So this could possibly
  * scribble on the planner's input data structures, but it's OK.