Alvaro Herrera wrote:
> #: pg_dump.c:5011
> #, c-format
> msgid "expected %d check constraint on table \"%s\" but found %d\n"
> msgid_plural "expected %d check constraints on table \"%s\" but found %d\n"
Sorry, I'm an idiot -- the one I wanted to paste was
#: pg_dump.c:6344 pg_dump.c:6543 pg_dump.c:7194
#, fuzzy, c-format
msgid "query returned %d row instead of one: %s\n"
msgid_plural "query returned %d rows instead of one: %s\n"
which actually matches the code fragment I pasted:
> ntups = PQntuples(res);
> if (ntups != 1)
> {
> write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
> "query returned %d rows instead of one: %s\n",
> ntups),
> ntups, query->data);
> exit_nicely();
> }
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support