Fix misleading error message about inconsistent moving-aggregate types.
authorTom Lane
Sun, 6 Sep 2020 16:55:13 +0000 (12:55 -0400)
committerTom Lane
Sun, 6 Sep 2020 16:55:37 +0000 (12:55 -0400)
commitf45dd3fed9cf7d336af08b53a1f73bf90c88fb1a
tree8ac7845d56bd5503585fa10b13e7f4188f55adba
parenta7bcf391f329561307a3d936443a715ad74a2e9d
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