Andres Freund <andres@anarazel.de> writes:
> I also wonder if postgres_fdw should strive to use a longer lived wait event
> set. For efficiency, if nothing else? That'd avoid the need to create one
> during error handling.
Seems like a plausible idea. Having to acquire resources to clean up
an error is an anti-pattern for sure.
regards, tom lane