Andres Freund <andres@2ndquadrant.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