@@ -417,9 +417,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
417417 func_signature_string (funcname , nargs ,
418418 argnames ,
419419 actual_arg_types )),
420- errhint ("There is an ordered-set aggregate %s, but it requires %d direct arguments, not %d." ,
421- NameListToString (funcname ),
422- catDirectArgs , numDirectArgs ),
420+ errhint_plural ("There is an ordered-set aggregate %s, but it requires %d direct argument, not %d." ,
421+ "There is an ordered-set aggregate %s, but it requires %d direct arguments, not %d." ,
422+ catDirectArgs ,
423+ NameListToString (funcname ),
424+ catDirectArgs , numDirectArgs ),
423425 parser_errposition (pstate , location )));
424426 }
425427 else
@@ -446,9 +448,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
446448 func_signature_string (funcname , nargs ,
447449 argnames ,
448450 actual_arg_types )),
449- errhint ("There is an ordered-set aggregate %s, but it requires %d direct arguments, not %d." ,
450- NameListToString (funcname ),
451- catDirectArgs , numDirectArgs ),
451+ errhint_plural ("There is an ordered-set aggregate %s, but it requires %d direct argument, not %d." ,
452+ "There is an ordered-set aggregate %s, but it requires %d direct arguments, not %d." ,
453+ catDirectArgs ,
454+ NameListToString (funcname ),
455+ catDirectArgs , numDirectArgs ),
452456 parser_errposition (pstate , location )));
453457 }
454458 else
@@ -485,9 +489,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
485489 func_signature_string (funcname , nargs ,
486490 argnames ,
487491 actual_arg_types )),
488- errhint ("There is an ordered-set aggregate %s, but it requires at least %d direct arguments." ,
489- NameListToString (funcname ),
490- catDirectArgs ),
492+ errhint_plural ("There is an ordered-set aggregate %s, but it requires at least %d direct argument." ,
493+ "There is an ordered-set aggregate %s, but it requires at least %d direct arguments." ,
494+ catDirectArgs ,
495+ NameListToString (funcname ),
496+ catDirectArgs ),
491497 parser_errposition (pstate , location )));
492498 }
493499 }
0 commit comments