aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-03-14 11:10:45 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-03-14 11:10:45 -0400
commit684ffac8c7d2647d919495727d469c73129202ea (patch)
tree29609248caf22d193221edd884299bb22e46c4ad /src/backend/parser/parse_expr.c
parentbdc8d803e8e0eb987b65da1a5528ac570a07bfe1 (diff)
downloadpostgresql-684ffac8c7d2647d919495727d469c73129202ea.tar.gz
postgresql-684ffac8c7d2647d919495727d469c73129202ea.zip
Remove unnecessary code in dependency_is_compatible_expression().
Scanning the expression for compatible Vars isn't really necessary, because the subsequent match against StatisticExtInfo entries will eliminate expressions containing other Vars just fine. Moreover, this code hadn't stopped to think about what to do with PlaceHolderVars or Aggrefs in the clause; and at least for the PHV case, that demonstrably leads to failures. Rather than work out whether it's reasonable to ignore those, let's just remove the whole stanza. Per report from Richard Guo. Back-patch to v14 where this code was added. Discussion: https://postgr.es/m/CAMbWs48Mmvm-acGevXuwpB=g5JMqVSL6i9z5UaJyLGJqa-XPAA@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions