Andreas Tille <[EMAIL PROTECTED]> writes: > I'm lacking experience here so I perfectly trust you that keeping > the default case as it is. The question is, whether adding an > option to change the default might make sense.
I don't think so. The current API contract for aggregate functions is that the finalfunc will be called exactly once per aggregate occurrence. Changing that to say "maybe you'll get called and maybe you won't" does not strike me as making life easier for aggregate authors, rather the reverse --- for example, the finalfunc might need to clean up some working state. regards, tom lane ---------------------------(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