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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Performance problems inside a stored procedure.



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/



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2007 PostgreSQL Global Development Group