Skip to content

Commit 19ad7e1

Browse files
committed
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
1 parent 666e9a9 commit 19ad7e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/catalog/pg_aggregate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ AggregateCreate(const char *aggName,
565565
ereport(ERROR,
566566
(errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
567567
errmsg("moving-aggregate implementation returns type %s, but plain implementation returns type %s",
568-
format_type_be(aggmTransType),
569-
format_type_be(aggTransType))));
568+
format_type_be(rettype),
569+
format_type_be(finaltype))));
570570
}
571571

572572
/* handle sortop, if supplied */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy