Re: Running out of memory while making a join - Mailing list pgsql-general

From Tom Lane
Subject Re: Running out of memory while making a join
Date
Msg-id 25939.1352572867@sss.pgh.pa.us
Whole thread Raw
In response to Re: Running out of memory while making a join  (Carlos Henrique Reimer <carlos.reimer@opendb.com.br>)
List pgsql-general
Carlos Henrique Reimer <carlos.reimer@opendb.com.br> writes:
> How is the best way to attach a debugger to the SELECT and identify why is
> it exhausting server storage.

In gdb,
    call MemoryContextStats(TopMemoryContext)
should produce some useful information on the process's stderr file.

            regards, tom lane


pgsql-general by date:

Previous
From: Carlos Henrique Reimer
Date:
Subject: Re: Running out of memory while making a join
Next
From: Jeff Janes
Date:
Subject: Re: PG defaults and performance (was Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum))