Re: Performance problems inside a stored procedure.

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: mlunnon(at)rwa-net(dot)co(dot)uk
Cc: pgsql-performance(at)postgresql(dot)org, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Subject: Re: Performance problems inside a stored procedure.
Date: 2008-01-29 13:59:19
Message-ID: 479F3137.2070708@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Matthew Lunnon wrote:

> Ahh, sorry, I have been too aggressive with my cutting, I am running
> 8.2.6 and the function is below.
>
<snip>

> $BODY$
> LANGUAGE 'sql' VOLATILE;
^^^^^^^^^^
I suspect that it's because you're using VOLATILE (so no good
optimizations is done); did you try STABLE? Could you show us the
EXPLAIN ANALYZE of query and function?

--
Euler Taveira de Oliveira
http://www.timbira.com/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Adrian Moisey 2008-01-29 14:28:45 analyze
Previous Message Mike Smith 2008-01-29 11:43:15 Re: 8x2.5" or 6x3.5" disks