Alvaro Herrera <alvhe...@2ndquadrant.com> writes: > This ngettext() call is repeated four times in the new code, which is a > bit annoying because it's not trivial. I think you could assign the > ngettext() to a char * at the bottom of the loop, and then in the > ereport() calls use it:
Would that not break the compiler's ability to verify the format codes in the string? Not to mention make it harder for people to compare format to arguments, too? However, the real problem here is that you shouldn't be calling ngettext manually in an ereport context in the first place. There is infrastructure in place for that, and this isn't using it. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers