Re: Per database connection limit buglet

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Per database connection limit buglet
Date: 2009-01-26 14:49:21
Message-ID: 20090126144921.GD3777@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-01-26 15:40:15 Re: Per database connection limit buglet
Previous Message tomas 2009-01-26 14:32:43 Re: Per database connection limit buglet