From: naveenallin@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14556: Sorry, Too many clients already
Date: Mon, 20 Feb 2017 08:24:13 +0000
Message-ID: <20170220082413.1256.75340@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14556
Logged by: Naveen Chalmeti
Email address: naveenallin@gmail.com
PostgreSQL version: 9.6.1
Operating system: Ubuntu 14.04 LTS
Description:
We are using postgresql(9.6.1) for more than three months and every
two/three days once we need to restart our servers with an error "Sorry, too
many connections already". Using a script we found that the postgresql
driver query listed below is not getting closed and remain unclosed.
16384 | SGDatabase | 18953 | 10 | postgres | |
127.0.0.1 | | 57979 | 2017-02-17
13:27:31.990945+05:30 | | 2017-02-17
13:29:56.433781+05:30 | 2017-02-17 13:29:56.435756+05:30 | |
| idle | | | select
n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen,
a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid,
pg_get_expr(d.adbin, d.adrelid), case t.typtype when 'd' then t.typbasetype
else 0 end, t.typtypmod, c.relhasoids from (((pg_catalog.pg_class c inner
join pg_catalog.pg_namespace n on n.oid = c.relnamespace and c.oid = 22796)
inner join pg_catalog.pg_attribute a on (not a.attisdropped) and a.attnum >
0 and a.attrelid = c.oid) inner join pg_catalog.pg_type t on t.oid =
a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid =
a.attrelid and d.adnum = a.attnum order by n.nspname, c.relname, attnum
this query was executed three days before and remains unclosed.
We are using unixODBC driver and enabled connection pooling for 5mins. I'm
not sure whether this causing any problem.
Please help us out.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: naveenallin@gmail.com
Subject: Re: BUG #14556: Sorry, Too many clients already
In-Reply-To: <20170220082413.1256.75340@wrigleys.postgresql.org>
References: <20170220082413.1256.75340@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox