@@ -417,9 +417,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
417
417
func_signature_string (funcname , nargs ,
418
418
argnames ,
419
419
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 ),
423
425
parser_errposition (pstate , location )));
424
426
}
425
427
else
@@ -446,9 +448,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
446
448
func_signature_string (funcname , nargs ,
447
449
argnames ,
448
450
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 ),
452
456
parser_errposition (pstate , location )));
453
457
}
454
458
else
@@ -485,9 +489,11 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
485
489
func_signature_string (funcname , nargs ,
486
490
argnames ,
487
491
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 ),
491
497
parser_errposition (pstate , location )));
492
498
}
493
499
}
0 commit comments