Re: idle connection timeout ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: idle connection timeout ...
Date
Msg-id 22568.1035554410@sss.pgh.pa.us
Whole thread Raw
In response to Re: idle connection timeout ...  ("Marc G. Fournier" <scrappy@hub.org>)
List pgsql-hackers
"Marc G. Fournier" <scrappy@hub.org> writes:
> Is there any way of the 'master process' *safely/accurately* knowing,
> through the shared memory link, the # of connections currently open to a
> particular database?  So that a limit could be set on a per db basis, say
> as an additional arg to pg_hba.conf?

It would be better/easier to apply the check later on, when a backend is
adding itself to the PGPROC array.  It'd be easy enough to count the
number of other backends showing the same DB OID in their PGPROC
entries, and reject if too many.
        regards, tom lane





pgsql-hackers by date:

Previous
From: Greg Copeland
Date:
Subject: Re: idle connection timeout ...
Next
From: Tom Lane
Date:
Subject: Re: idle connection timeout ...