Re: Out of memory on SELECT (from sort?) in 8.3

From: "Matt Magoffin" <postgresql(dot)org(at)msqr(dot)us>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Out of memory on SELECT (from sort?) in 8.3
Date: 2008-09-25 20:47:20
Message-ID: 49415.192.168.1.106.1222375640.squirrel@msqr.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Huh, I was overthinking the problem. xml_out has a memory leak :-(
>
> More than one in fact: a large leak (equal to size of output) in
> the executor context (hence query lifespan) and a small one in
> LibxmlContext (hence transaction lifespan).
>
> Try the patch here:
> http://archives.postgresql.org/pgsql-committers/2008-09/msg00159.php

I've applied this patch now to our staging and production environments,
and Postgres performed quite well after testing very large result sets
that were previously failing with out of memory errors... so the patch is
successful for this problem I was having. I didn't see any significant
increase in memory over the course of the query execution, in fact.

Thanks!

-- m@

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Casey Allen Shobe 2008-09-25 20:49:43 Re: Oracle and Postgresql
Previous Message Casey Allen Shobe 2008-09-25 20:45:06 Re: Obfuscated stored procedures (was Re: Oracle and Postgresql)