Re: capturing/viewing sort_mem utilization on a per query basis

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lonni J Friedman <netllama(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: capturing/viewing sort_mem utilization on a per query basis
Date: 2005-02-02 16:17:59
Message-ID: 29238.1107361079@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lonni J Friedman <netllama(at)gmail(dot)com> writes:
> I've got a pesky J2EE based app that is using PostgreSQL-7.4.x on the
> backend. Lately i've been getting a disturbing large number of
> PostgreSQL out of memory exceptions on the J2EE side when running
> queries that have some huge joins in them.

Such an error on the client side would indicate that the query retrieved
more rows than the client app had memory for. Perhaps your problem is
incorrectly-constrained joins that are returning way more rows than
you expect?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-02-02 16:29:25 Re: simple case syntax oddity in 8.0.0
Previous Message Richard Huxton 2005-02-02 16:14:49 Re: PostgreSQL on cluster