explain and explain analyze with functions

From: elein <elein(at)nextbus(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: explain and explain analyze with functions
Date: 2002-05-01 18:58:54
Message-ID: 5.1.0.14.0.20020501114814.01c5e6c8@office.nextbus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Explain and explain analyze do not seem to count any
subqueries in functions called.

select la, di, da from mytab where la=fala(di,da);

gets a lower score on both explain and analyze
than the query in fala() does by itself (or select fala()).
The runtime reported in milliseconds is also lower (19 vs 55).
The function fala() is just an sql function.

Is this a bug? Is this a feature request? Is there
any way besides doing the arithmetic to get this information?

I understand the function runs in a different context, but
the explain should traverse the execution tree and sum up, no?

elein(at)nextbus(dot)com

:::::::::::::::::::::::::::::::::
: elein(at)nextbus(dot)com :
: AND NOT OR :
:::::::::::::::::::::::::::::::::

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2002-05-01 19:02:03 Re: rowcount
Previous Message dorian dorian 2002-05-01 18:49:55 Re: icps, shmmax and shmall - Shared Memory tuning