Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Get rid of the CASEs (perhaps you could wrap them into functions> declared STRICT) and the view would be flattenable.
Will do that. Thanks.
Regards,Manuel.