Claus Stadler <cstadler(at)informatik(dot)uni-leipzig(dot)de> writes:
> Filtering a Union on constant custom type:
> ...
> Expected: Query optimizer should discard the scan as filter cannot be
> satisfied.
I've applied a patch for this. Thanks for the report!
regards, tom lane