From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: depesz@depesz.com
To: pgsql-bugs@postgresql.org
Subject: Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables
Date: Mon, 13 Jun 2016 08:56:56 -0400
Message-ID: <41f45186-64f6-8f9a-c72a-a3e9555d57b1@2ndquadrant.com> (raw)
In-Reply-To: <20160609154610.GA20600@depesz.com>
References: <20160609154610.GA20600@depesz.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 6/9/16 11:46 AM, hubert depesz lubaczewski wrote:
> Basically it looks that postgresql "caches" query plans? parsed elements? for
> queries, but doesn't put any kind of limit to size of this cache. Which means
> that if our app is using LOTS of different queries, the memory usage will grow
> in time.
If you compile with -DSHOW_MEMORY_STATS, it will print out memory
allocation after every command, so you might be able to see where the
memory is going.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: peter.eisentraut@2ndquadrant.com, depesz@depesz.com
Subject: Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables
In-Reply-To: <41f45186-64f6-8f9a-c72a-a3e9555d57b1@2ndquadrant.com>
References: <20160609154610.GA20600@depesz.com> <41f45186-64f6-8f9a-c72a-a3e9555d57b1@2ndquadrant.com>
* 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