Re: [BUGS] Per database connection limit buglet

2009-01-30 Thread Heikki Linnakangas
Tom Lane wrote: Heikki Linnakangas writes: 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: Why does it need to be anything exce

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread Tom Lane
Heikki Linnakangas writes: > 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: Why does it need to be anything except GUC's

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread Alvaro Herrera
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, m

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 26, 2009 at 03:16:37PM +0200, Heikki Linnakangas wrote: [...] >> Maybe >>invalid connection limit %d (must be positive or -1, for "unlimited") > > Hmm, that sounds better, but it can also be 0. Oops. "nonnegative", then. Creeping unrea

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread Heikki Linnakangas
to...@tuxteam.de wrote: On Mon, Jan 26, 2009 at 02:26:05PM +0200, 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 u

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 26, 2009 at 02:26:05PM +0200, 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

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread Dave Page
On Mon, Jan 26, 2009 at 12:26 PM, 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

Re: [BUGS] Per database connection limit buglet

2009-01-26 Thread Heikki Linnakangas
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) Any better