Hi hackers,

    Upon further consideration, in the newly added function 
strip_all_adjacency_relabeltypes_walker,
when handling adjacent RelabelType nodes, besides performance and memory space 
related
optimizations, we should also follow the behavior of applyRelabelType() and 
perform analogous
processing on the RelabelType’s argument.

The resulting expression yields an equivalent simple Var, which can be used to 
look up column statistics,
and also works correctly for equal() comparisons against index expressions and 
extended statistics expressions.

The test SQL and scenarios remain the same as in my previous mail.

regards,
--
ZizhuanLiu (X-MAN) 
[email protected]

Attachment: v4-0001-proper-handling-examine_variable-RelabelType.patch
Description: Binary data

Reply via email to