Check that connection limit is within valid range. IOW, not < -1.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 4265ed9f4e6e7bfdd26cd7879006a14fce3e5640
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-01-30T17:24:47Z
Releases: 8.4.0
Check that connection limit is within valid range. IOW, not < -1.

It's missing in older versions too, but it doesn't seem worth
back-porting. All negative are just harmlessly treated as "no limit", and
tightening the check might even brake an application that relies on it.

Files

PathChange+/−
src/backend/commands/dbcommands.c modified +13 −1
src/backend/commands/user.c modified +13 −1