Peter Smith <smithpb2250@gmail.com> writes:
> Case#1: publication "XXX" has a problem
> Case#2: the following publications have a problem: "XXX", "YYY", "ZZZ"
Entirely aside from the mechanics of producing the output,
I am not sure I buy that emitting that is a desirable goal.
It seems to be based on an English-centric notion that singular
and indefinitely-many plural are the only two categories.
This is incorrect (see the documentation for ngettext()).
Is there a good reason not to output a separate message for
each publication? If we need to throw an ereport(ERROR)
covering them all, maybe list them in separate sentences
in a DETAIL message.
regards, tom lane