From: Edipo Elder Fernandes de Melo <edipoelder@ig.com.br>
To: pgsql-sql@postgresql.org
Subject: Calling functions inside a function: behavior
Date: Mon, 2 Apr 2001 08:50:32 -0300
Message-ID: <200104021150.f32BoqK60742@postgresql.org> (raw)
Hi all,
I wrote a function that call another functions, like this:
FUNCTION (...) AS '(...)BEGIN
PERFORM FUNCTION1();
PERFORM FUNCTION2();
(...)
END;' LANGUAGE 'PLPGSQL';
The problem is that takes a long time to execute (I stoped after three
days executing). To see who taking more time to execute, I modified each one
to return the time of its execution. Then, a made a scrip like:
SELECT TIMESTAMP 'NOW';
SELECT FUNCTION1();
SELECT FUNCTION2(); (...)
SELECT TIMESTAMP 'NOW';
and, for my surprise, it take minutes to run. I read the documentation
and I didn't found any coment abou this behavior. Can anyone explain this?
Thank you,
Edipo Elder
[edipoelder@ig.com.br]
_________________________________________________________
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://www.ig.com.br/paginas/assineigmail.html
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: edipoelder@ig.com.br
Subject: Re: Calling functions inside a function: behavior
In-Reply-To: <200104021150.f32BoqK60742@postgresql.org>
References: <200104021150.f32BoqK60742@postgresql.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