pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: akshay.ballarpure@tcs.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14453: Growing file descriptors on IDLE connections
Date: Wed, 7 Dec 2016 09:15:26 -0500
Message-ID: <20161207141525.GW23417@tamriel.snowman.net> (raw)
In-Reply-To: <20161207110618.31169.97238@wrigleys.postgresql.org>
References: <20161207110618.31169.97238@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Greetings,

* akshay.ballarpure@tcs.com (akshay.ballarpure@tcs.com) wrote:
> The following bug has been logged on the website:

THis is not a bug.

> Is there any way to clean up idle connections which are consuming a large
> number of file descriptors ? Does it have any impact on psql server
> performance ?

Having lots of idle connections around can impact performance in some
instances.  PostrgeSQL intentionally caches the file descriptors of open
files to avoid the overhead of opening them again but that generally
isn't a performance issue.

I would suggest you look into a connection pooler (eg: pgbouncer) to
avoid having lots of idle connections to the database.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (2+ messages)

Message-ID: <20161207141525.GW23417@tamriel.snowman.net>
Permalink:  ../20161207141525.GW23417@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20161207141525.GW23417@tamriel.snowman.net

 · 

reply

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: sfrost@snowman.net, akshay.ballarpure@tcs.com
  Subject: Re: BUG #14453: Growing file descriptors on IDLE connections
  In-Reply-To: <20161207141525.GW23417@tamriel.snowman.net>
  References: <20161207110618.31169.97238@wrigleys.postgresql.org> <20161207141525.GW23417@tamriel.snowman.net>

* 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