Carlos Henrique Reimer <carlos.reimer@xxxxxxxxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general