From: | Fujii Masao <fujii(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: postgres_fdw: Extend postgres_fdw_get_connections to return remo |
Date: | 2025-03-03 00:16:31 |
Message-ID: | E1totTz-000WxK-0E@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
postgres_fdw: Extend postgres_fdw_get_connections to return remote backend PID.
This commit adds a new "remote_backend_pid" output column to
the postgres_fdw_get_connections function. It returns the process ID of
the remote backend, on the foreign server, handling the connection.
This enhancement is useful for troubleshooting, monitoring, and reporting.
For example, if a connection is unexpectedly closed by the foreign server,
the remote backend's PID can help diagnose the cause.
No extension version bump is needed, as commit c297a47c5f already
handled it for v18~.
Author: Sagar Dilip Shedge <sagar(dot)shedge92(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAPhYifF25q5xUQWXETfKwhc0YVa_6+tfG9Kw4bCvCjpCWxYs2A@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fe186bda78c4a0ccbb691489c744e6317f648434
Modified Files
--------------
contrib/postgres_fdw/connection.c | 11 ++++--
contrib/postgres_fdw/expected/postgres_fdw.out | 46 ++++++++++++++++---------
contrib/postgres_fdw/postgres_fdw--1.1--1.2.sql | 2 +-
contrib/postgres_fdw/sql/postgres_fdw.sql | 26 ++++++++++----
doc/src/sgml/postgres-fdw.sgml | 23 +++++++++----
5 files changed, 76 insertions(+), 32 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-03-03 01:01:01 | pgsql: Handle auxiliary processes in SQL functions of backend statistic |
Previous Message | Peter Eisentraut | 2025-03-02 13:03:34 | pgsql: Use PRI*64 instead of "ll*" in format strings (minimal trial) |