Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Is RESOURCE_RELEASE_AFTER_LOCKS actually used for anything? Is it
> just for extensions?
I'm too lazy to go look, but it certainly ought to be in use.
The idea is that that's the phase for post-lock-release cleanup,
and anything that can possibly be postponed till after releasing
locks certainly should be ...
regards, tom lane