[HACKERS] Maximum number of connections ! - Mailing list pgsql-hackers

From Oleg Bartunov
Subject [HACKERS] Maximum number of connections !
Date
Msg-id 088c8bf9fb0ea526a26f825034c8cec3
Whole thread Raw
List pgsql-hackers
Hello,

in real life we need a possibility to limit a number of connections
to the backend, just to regulate a load of server. In my case
Pentium 200/64Mb, Linux 2.29 running is enough may be for 10 simultaneous
connections to database and I'd like to control this number.
Users have an access to my database through WWW interface and could
overload my server (and sometimes it happens) just pressing submit button.
In such case I'd like that postmaster will not run a new backend and
returns PGMAX_CONNECTIONS so I can use it in my cgi-scripts.
I know as a workaround I can control such situation from a system side
but it would be naturally if postmaster will do this job.
This number can be stored in global .pgrc file, which as I understand
all people agree to implement.

    Best regards,

        Oleg

_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

------------------------------

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] 6.1 jumbo patch?
Next
From: "Martin J. Laubach"
Date:
Subject: Re: [HACKERS] 6.1 jumbo patch?