postgresql/contrib/postgres_fdw
Fujii Masao 708d165ddb postgres_fdw: Add function to list cached connections to foreign servers.
This commit adds function postgres_fdw_get_connections() to return
the foreign server names of all the open connections that postgres_fdw
established from the local session to the foreign servers. This function
also returns whether each connection is valid or not.

This function is useful when checking all the open foreign server connections.
If we found some connection to drop, from the result of function, probably
we can explicitly close them by the function that upcoming commit will add.

This commit bumps the version of postgres_fdw to 1.1 since it adds
new function.

Author: Bharath Rupireddy, tweaked by Fujii Masao
Reviewed-by: Zhijie Hou, Alexey Kondratov, Zhihong Yu, Fujii Masao
Discussion: https://postgr.es/m/2d5cb0b3-a6e8-9bbb-953f-879f47128faa@oss.nttdata.com
2021-01-18 15:11:08 +09:00
..
expected postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
sql postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
connection.c postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
deparse.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
option.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
postgres_fdw--1.0--1.1.sql postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
postgres_fdw.control postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
postgres_fdw.h Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00
shippable.c Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00