The following bug has been logged on the website:
Bug reference: 14162
Logged by: Daniel Migowski
Email address: dmigowski(at)ikoffice(dot)de
PostgreSQL version: 9.5.0
Operating system: Windows 7 64it
Description:
I created some user defined aggregate with a user defined plpgsql SFUNC.
The calls to plpgsql functions used in these aggregates are not counted by
the statistics collector when the aggregate is used, but calling them
directly will work.