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
[[EMAIL PROTECTED]]
_________________________________________________________
Oi! Voc� quer um iG-mail gratuito?
Ent�o clique aqui: http://www.ig.com.br/paginas/assineigmail.html
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html
[SQL] Calling functions inside a function: behavior
Edipo Elder Fernandes de Melo Mon, 02 Apr 2001 04:57:24 -0700
- Re: [SQL] Calling functions inside a functio... Edipo Elder Fernandes de Melo
- Re: [SQL] Calling functions inside a fu... Roberto Mello
- Fwd: [SQL] Calling functions inside a f... Josh Berkus
- Re: Fwd: [SQL] Calling functions inside... edipoelder
- [SQL] select statement inside a fun... Jie Liang
