pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sabin Coanda <sabin.coandaSPAMPROTECTION@deuromedia.ro>
To: pgsql-performance@postgresql.org
Subject: Re: How check execution plan of a function
Date: Thu, 8 Apr 2010 09:29:07 +0300
Message-ID: <hpjt6s$e4i$1@news.hub.org> (raw)
References: <hphv0u$18f$1@news.hub.org>

Maybe other details about the source of the problem help.

The problem occured when I tried to optimize the specified function. It was 
running in about 3 seconds, and I needed to be faster. I make some changes 
and I run the well known "CREATE OR REPLACE FUNCTION ..." After that, my 
function execution took so much time that I had to cancel it. I restored the 
previous function body, but the problem persisted. I tried to drop it and 
create again, but no chance to restore the original performance. So I was 
forced to restore the database from backup.

Also I found the problem is reproductible, so a change of function will 
damage its performance.

Can anyone explain what is happen ? How can I found the problem ?

TIA,
Sabin 





view thread (6+ messages)  latest in thread

Message-ID: <hpjt6s$e4i$1@news.hub.org>
Permalink:  ../hpjt6s$e4i$1@news.hub.org/
Also on:    postgresql.org/message-id/hpjt6s$e4i$1@news.hub.org

 · 

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: sabin.coandaSPAMPROTECTION@deuromedia.ro
  Subject: Re: How check execution plan of a function
  In-Reply-To: <hpjt6s$e4i$1@news.hub.org>

* 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