postgres_fdw: Replace WAIT_EVENT_EXTENSION with custom wait events

Michael Paquier <michael@paquier.xyz>

Commit: d61f2538a39f1dbeead01bc972fca597c769f518
Author: Michael Paquier <michael@paquier.xyz>
Date: 2023-10-05T00:50:42Z
Releases: 17.0
postgres_fdw: Replace WAIT_EVENT_EXTENSION with custom wait events

Three custom wait events are added here:
- "PostgresFdwCleanupResult", waiting while cleaning up PQgetResult() on
transaction abort.
- "PostgresFdwConnect", waiting to establish a connection to a remote
server.
- "PostgresFdwGetResult", waiting to receive a result from a remote
server.

Author: Masahiro Ikeda
Discussion: https://postgr.es/m/197bce267fa691a0ac62c86c4ab904c4@oss.nttdata.com

Files

PathChange+/−
contrib/postgres_fdw/connection.c modified +20 −3
doc/src/sgml/postgres-fdw.sgml modified +38 −0

Documentation touched

Discussion