Vlad,
> It shows only top-level statements. You can see 'select * from f()' in
> this table but you never see what is actually executing in this function.
Queries executed inside functions are opaque to the stats collector for a
variety of technical reasons. Changing this is on the TODO list, but AFAIK
nobody is currently working on it.
--
Josh Berkus
PostgreSQL
San Francisco