Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf45dd3f

Browse files
committed
Fix misleading error message about inconsistent moving-aggregate types.
We reported the wrong types when complaining that an aggregate'smoving-aggregate implementation is inconsistent with its regularimplementation.This was wrong since the feature was introduced, so back-patchto all supported branches.Jeff JanesDiscussion:https://postgr.es/m/CAMkU=1x808LH=LPhZp9mNSP0Xd1xDqEd+XeGcvEe48dfE6xV=A@mail.gmail.com
1 parenta7bcf39 commitf45dd3f

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
@@ -563,8 +563,8 @@ AggregateCreate(const char *aggName,
563563
ereport(ERROR,
564564
(errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
565565
errmsg("moving-aggregate implementation returns type %s, but plain implementation returns type %s",
566-
format_type_be(aggmTransType),
567-
format_type_be(aggTransType))));
566+
format_type_be(rettype),
567+
format_type_be(finaltype))));
568568
}
569569

570570
/* handle sortop, if supplied */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp