Alan Li <alanwli(at)gmail(dot)com> writes:
> Running the following against HEAD and REL8_3_6:
> create table foo (a varchar(500));
> create view bar as select case foo.a when '1' then 'foo' else 'bar' end as
> fa from foo;
> \d bar
> Causes as assertion in the backend:
Thanks for the report. Looks like I forgot to consider the possibility
that type coercion nodes would get inserted atop the CaseTestExpr.
You can break the other paths here too if you try things like
case foo when true then ...
where foo is of a domain over boolean.
Will fix.
regards, tom lane