Content-Length: 270011 | pFad | http://github.com/postgrespro/postgres/commit/c2d81ee902b96e6218e832eea184dbbfbc3af7d7

84 Remove useless variable. · postgrespro/postgres@c2d81ee · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c2d81ee902b96e6218e832eea184dbbfbc3af7d7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy