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

From Jeff Janes
Subject Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables
Date
Msg-id CAMkU=1xLbimBPzP1xobkO-sUw2iELD3Emvn7zw0SwCYnkoSeSw@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL (9.3 and 9.6) eats all memory when using many tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Mon, Jun 13, 2016 at 6:36 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Another problem, if the bloat is being driven by explicit PREPARE commands
> as you illustrate here, is that the backend doesn't get to silently
> discard prepared statements.

In the perl script he showed, the handle returned by $dbh->prepare is
not stored anywhere, so it should automatically get garbage collected
at the end of the Perl statement.  The garbage collection should
trigger a destructor to send a "DEALLOCATE".

Cheers,

Jeff

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: zzia88@gmail.com
Date:
Subject: BUG #14184: Function is running correct but not showing output