Dave Blasby writes:
> I've noticed that text(bool) isnt a defined function (nor does
> 'true'::bool::text work).
case when value then 'answer if true' else 'answer if false' end
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter