Re: BUG #14162: No statistics for functions used as aggregates

From: Daniel Migowski <dmigowski(at)ikoffice(dot)de>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14162: No statistics for functions used as aggregates
Date: 2016-05-30 07:56:46
Message-ID: 41ED3F5450C90F4D8381BC4D8DF6BBDCAF464F15@EXCHANGESERVER.ikoffice.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Yes, I am sure. To measure my function I had to recreate it with a different name, and create a plpgsql wrapper function with the original signature that calls it. Now I was able to get my results and the function showed up in the stats. The wrapper didn't!

-----Ursprüngliche Nachricht-----
Von: Michael Paquier [mailto:michael(dot)paquier(at)gmail(dot)com]
Gesendet: Montag, 30. Mai 2016 05:53
An: Daniel Migowski <dmigowski(at)ikoffice(dot)de>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Betreff: Re: [BUGS] BUG #14162: No statistics for functions used as aggregates

On Sat, May 28, 2016 at 10:52 PM, <dmigowski(at)ikoffice(dot)de> wrote:
> 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.

Are you sure that track_functions is enabled? If it disabled by default. In order to track the number of calls of user-defined functions it needs to be set to "pl" or "all".
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message kes-kes 2016-05-30 08:50:41 BUG #14164: Postgres allow to insert more data into field than this field allow
Previous Message Michael Paquier 2016-05-30 03:53:12 Re: BUG #14162: No statistics for functions used as aggregates