Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group