On Tue, 6 Jun 2006, Roberto Rezende de Assis wrote:
Hello, I would like to know where in the source-code of postgres is located the code of the aggregate functions min, max, avg.
They're in src/backend/utils/adt/numeric.c
I wish to develop more statistical aggregate functions, and I prefer to use C than to write then in the PL/R.
Make sure you read section "32.10 User-Defined aggregates" in the manual: http://www.postgresql.org/docs/current/interactive/xaggr.html Also, take a look at contrib/intagg for another example. - Heikki ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly