Skip to content

Commit 1e460d4

Browse files
committed
Fix typo in setrefs.c
We're adding OIDs, not TIDs, to invalItems. Pointed out by Etsuro Fujita. Back-patch to all supported branches.
1 parent 91cf313 commit 1e460d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/backend/optimizer/plan/setrefs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ copyVar(Var *var)
12431243
* This is code that is common to all variants of expression-fixing.
12441244
* We must look up operator opcode info for OpExpr and related nodes,
12451245
* add OIDs from regclass Const nodes into root->glob->relationOids, and
1246-
* add catalog TIDs for user-defined functions into root->glob->invalItems.
1246+
* add catalog OIDs for user-defined functions into root->glob->invalItems.
12471247
* We also fill in column index lists for GROUPING() expressions.
12481248
*
12491249
* We assume it's okay to update opcode info in-place. So this could possibly

0 commit comments

Comments
 (0)