Laetitia Avrot <laetitia.av...@gmail.com> writes: > Thank you so much for your suggestion. I was really excited to find a > generic term for Functions and Procedures, but "routine" also includes > aggregation functions which I had excluded from my feature (see Postgres > Glossary here: > https://www.postgresql.org/docs/14/glossary.html#GLOSSARY-ROUTINE).
> I had decided not to include aggregate functions when I designed my patch > because I thought most users wouldn't expect them in the result file. Was I > wrong? I'd vote for treating them as functions for this purpose. I'd put them in the same category as window functions: we use a separate name for them for historical reasons, but they still walk and quack pretty much like functions. regards, tom lane