Skip to content

Commit c2d81ee

Browse files
committed
Remove useless variable.
flatten_join_alias_vars_mutator counted attnums, but didn't do anything with the count (no doubt it did at one time). Noted by buildfarm member seawasp.
1 parent 641a9b7 commit c2d81ee

File tree

1 file changed

+0
-3
lines changed
  • src/backend/optimizer/util

1 file changed

+0
-3
lines changed

src/backend/optimizer/util/var.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,16 +774,13 @@ flatten_join_alias_vars_mutator(Node *node,
774774
RowExpr *rowexpr;
775775
List *fields = NIL;
776776
List *colnames = NIL;
777-
AttrNumber attnum;
778777
ListCell *lv;
779778
ListCell *ln;
780779

781-
attnum = 0;
782780
Assert(list_length(rte->joinaliasvars) == list_length(rte->eref->colnames));
783781
forboth(lv, rte->joinaliasvars, ln, rte->eref->colnames)
784782
{
785783
newvar = (Node *) lfirst(lv);
786-
attnum++;
787784
/* Ignore dropped columns */
788785
if (newvar == NULL)
789786
continue;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy