> ... I'd be sorely tempted to replace all three by a single > function that takes integer and returns numeric.
Yikes. Although numeric is theoretically nice, it is hundreds of times slower than native doubles. We've already moved it in to some of the other aggregate math functions without much discussion of the performance hit. - Thomas ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org