Re: capturing/viewing sort_mem utilization on a per query basis - Mailing list pgsql-general

From Tom Lane
Subject Re: capturing/viewing sort_mem utilization on a per query basis
Date
Msg-id 29238.1107361079@sss.pgh.pa.us
Whole thread Raw
In response to capturing/viewing sort_mem utilization on a per query basis  (Lonni J Friedman <netllama@gmail.com>)
Responses Re: capturing/viewing sort_mem utilization on a per query basis  (Lonni J Friedman <netllama@gmail.com>)
List pgsql-general
Lonni J Friedman <netllama@gmail.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

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: PostgreSQL on cluster
Next
From: Tom Lane
Date:
Subject: Re: simple case syntax oddity in 8.0.0