postgres_fdw: Replace WAIT_EVENT_EXTENSION with custom wait events
commitd61f2538a39f1dbeead01bc972fca597c769f518
authorMichael Paquier <michael@paquier.xyz>
Thu, 5 Oct 2023 00:50:42 +0000 (5 09:50 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 5 Oct 2023 00:50:42 +0000 (5 09:50 +0900)
treeee576a27ee113919126403007bc69e183817bdb6
parent684d9bfdd5a6e6e368133707c678a2e2a984cc4e
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
contrib/postgres_fdw/connection.c
doc/src/sgml/postgres-fdw.sgml