From d61f2538a39f1dbeead01bc972fca597c769f518 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Thu, 5 Oct 2023 09:50:42 +0900 Subject: 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 --- doc/src/sgml/postgres-fdw.sgml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/postgres-fdw.sgml b/doc/src/sgml/postgres-fdw.sgml index c177fd41bcb..33cc6e07b76 100644 --- a/doc/src/sgml/postgres-fdw.sgml +++ b/doc/src/sgml/postgres-fdw.sgml @@ -1042,6 +1042,44 @@ postgres=# SELECT postgres_fdw_disconnect_all(); + + Wait Events + + + postgres_fdw can report the following wait events + under the wait event type Extension: + + + + + PostgresFdwCleanupResult + + + Waiting for transaction abort on remote server. + + + + + + PostgresFdwConnect + + + Waiting to establish a connection to a remote server. + + + + + + PostgresFdwGetResult + + + Waiting to receive the results of a query from a remote server. + + + + + + Configuration Parameters -- cgit v1.2.3