Re: Per database connection limit buglet - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: Per database connection limit buglet
Date
Msg-id 20090126144921.GD3777@alvh.no-ip.org
Whole thread Raw
In response to Re: Per database connection limit buglet  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: tomas@tuxteam.de
Date:
Subject: Re: Per database connection limit buglet
Next
From: Tom Lane
Date:
Subject: Re: Per database connection limit buglet