Re: Running out of memory while making a join

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Running out of memory while making a join
Date: 2012-11-10 18:41:07
Message-ID: 25939.1352572867@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2012-11-10 21:05:52 Re: PG defaults and performance (was Re: Unexpectedly high disk space usage RESOLVED (Manual reindex/vacuum))
Previous Message Carlos Henrique Reimer 2012-11-10 16:50:05 Re: Running out of memory while making a join