pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abu Mushayeed <abumushayeed@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: CPU Intensive query
Date: Fri, 18 May 2007 17:51:04 -0400
Message-ID: <3287.1179525064@sss.pgh.pa.us> (raw)
In-Reply-To: <877956.83201.qm@web57112.mail.re3.yahoo.com>
References: <877956.83201.qm@web57112.mail.re3.yahoo.com>

Abu Mushayeed <abumushayeed@yahoo.com> writes:
>   The query is as follows and it's explain plan is also attached:

The query itself seems to be a simple join over not too many rows, so
I don't see how it could be taking 24 hours.  What I suspect is you're
incurring lots and lots of invocations of those user-written functions
and one of them has suddenly decided to get very slow.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <3287.1179525064@sss.pgh.pa.us>
Permalink:  ../3287.1179525064@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3287.1179525064@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, abumushayeed@yahoo.com
  Subject: Re: CPU Intensive query
  In-Reply-To: <3287.1179525064@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox