Andres Freund <and...@anarazel.de> writes: > If there is a finalfunc, they're typically going to return data from within > the current memory context, but could legitimately also return part of the > data from curaggcontext. Perhaps we could forbid that?
No, I don't think we can get away with that. See int8inc() for a counterexample. regards, tom lane