Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> While not particularly nice, given the API, it seems best for buffile.c
> to remember the resource owner used for the original segment and
> temporarily set that during the extension.
Hm, yeah, that seems right. It's just like repalloc keeping the memory
chunk in its original context. The comments here are a bit inadequate...
regards, tom lane