Fix misleading error message about inconsistent moving-aggregate types.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Sep 2020 16:55:13 +0000 (12:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Sep 2020 16:56:10 +0000 (12:56 -0400)
commite0b4c7dd0b61461da8e4a74a98326e4b591fd575
tree1e32933d960cce22fd6d99a36de70eeb8438c0ed
parentbe6667081e233d5868dd7e59ca2226348a489fb5
Fix misleading error message about inconsistent moving-aggregate types.

We reported the wrong types when complaining that an aggregate's
moving-aggregate implementation is inconsistent with its regular
implementation.

This was wrong since the feature was introduced, so back-patch
to all supported branches.

Jeff Janes

Discussion: https://postgr.es/m/CAMkU=1x808LH=LPhZp9mNSP0Xd1xDqEd+XeGcvEe48dfE6xV=A@mail.gmail.com
src/backend/catalog/pg_aggregate.c