Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> Looking at the code, it seems we are testing rettype != finaltype, but
> reporting aggmTransType and aggTransType. Why aren't we reporting what we
> are testing?
Silly thinko, apparently. Your fix looks right, will push.
regards, tom lane