Connection limit exceeded for non-superusers when there are plenty of available slots

From: G B <g(dot)b(dot)coder(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Connection limit exceeded for non-superusers when there are plenty of available slots
Date: 2013-02-28 20:38:03
Message-ID: CALf6ki3A3+4owFZSC4heNTV8eyXKieOiP+BxDZJXCuzVj5shEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We have a number of applications using a production database under a super
user account. I've created a new (non-super) user account and if I try to
login using this account I get the
"Non-superuser connection limit exceeded" error. I'm aware of the
postgresql.conf settings for max user connections etc. Here are the queries
I ran (under super user) when the login exception occurs.

SELECT usesuper, count(*) FROM pg_stat_activity JOIN pg_user USING
(usesysid) GROUP BY usesuper;

62

SHOW superuser_reserved_connections;

480

SHOW max_connections;
500

Is there something I'm missing here? Thanks for your help.

Here's my OS + Postgres

Ubuntu x86_64 , Postgres 8.4.8

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Angelico 2013-02-28 20:49:18 Re: Connection limit exceeded for non-superusers when there are plenty of available slots
Previous Message Sebastian Böhm 2013-02-28 20:35:11 warm standby question