Heikki Linnakangas wrote: > Dave Page wrote: >> It's possible to set a per-database connection limit of < -1, which seems >> bogus: > > Yeah. That's simple to fix, but I'm having trouble wordsmithing the > error message. This is what I came up with: > > invalid connection limit %d (must be -1, meaning no limit, or greater)
Split it up: errmsg("invalid connection limit %d"), errdetail("Limit must be a non-negative number, or -1 for no limit.") or maybe errdetail("Valid values are -1 for no limit, or a non-negative number.") -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs