Re: Several queries consume 100 % processor - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Several queries consume 100 % processor
Date
Msg-id 20070523125917.GB5089@svana.org
Whole thread Raw
In response to Several queries consume 100 % processor  ("J. ORIOL" <famach@yahoo.com>)
List pgsql-general
On Wed, May 23, 2007 at 07:50:42AM -0500, J. ORIOL wrote:
> Hi,
>
> I have an app working over LAN , XP + Postgres 8.2. The problem is
> that a client send several queries and the processor show me 100 %
> usage. (P IV 3 Ghz with 1 Gb RAM) and stops all its tasks until
> queries finishes.
>
> This queries are send from inside app code, should I create
> procedures for every one of the queries inside Postgres ?, How much
> response time will be improved with this ?

I doubt making them procedures will make much difference to
performance. If you want more recommendations, please post to the list
more details about the actual queries and tables involved (you have got
logging setup to detect the errant queries, right?)

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "J. ORIOL"
Date:
Subject: Several queries consume 100 % processor
Next
From: Richard Huxton
Date:
Subject: Re: Several queries consume 100 % processor