Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables
Date
Msg-id 41f45186-64f6-8f9a-c72a-a3e9555d57b1@2ndquadrant.com
Whole thread Raw
In response to PostgreSQL (9.3 and 9.6) eats all memory when using many tables  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-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

pgsql-bugs by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables