On Wed, Jul 18, 2012 at 3:56 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> hm, it's the 'group by' -- for example if you add group by
> pg_namespace.oid, group by pg_namespace.oid || 'abc', you can invent
> columns that come back into the rowtype.
here's a cut down example:
with q as (select max(v) from (select 1 as v) q group by v) select q from q;
merlin