Per database connection limit buglet - Mailing list pgsql-bugs

From Dave Page
Subject Per database connection limit buglet
Date
Msg-id 937d27e10811180501k18e8aa5te98fededb8bf3892@mail.gmail.com
Whole thread Raw
Responses Re: Per database connection limit buglet
List pgsql-bugs
It's possible to set a per-database connection limit of < -1, which seems bogus:

gator:~ dpage$ /usr/local/pgsql84/bin/psql -p 5433 postgres
psql (8.4devel)
Type "help" for help.

postgres=# create database test with connection limit = -999;
CREATE DATABASE
postgres=# select datname, datconnlimit from pg_database;
  datname  | datconnlimit
-----------+--------------
 template1 |           -1
 template0 |           -1
 postgres  |           50
 foo       |           45
 test      |         -999
(5 rows)

8.3 seems similarly afflicted - I haven't tested any further back.

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: "Sabin Coanda"
Date:
Subject: Re: BUG #4536: raise doesn't add end of line
Next
From: "Juan"
Date:
Subject: BUG #4538: shared memory