Check that connection limit is within valid range. IOW, not < -1.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 30 Jan 2009 17:24:47 +0000 (17:24 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 30 Jan 2009 17:24:47 +0000 (17:24 +0000)
commit4265ed9f4e6e7bfdd26cd7879006a14fce3e5640
treecb18c7fbc00aeb3871cc623044b6d9dfd837b924
parentcb629f72255e19bce3aea3acb13ec2efcc0d47ec
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.
src/backend/commands/dbcommands.c
src/backend/commands/user.c