diff options
author | Fujii Masao <fujii@postgresql.org> | 2021-01-18 15:11:08 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2021-01-18 15:11:08 +0900 |
commit | 708d165ddb92c54077a372acf6417e258dcb5fef (patch) | |
tree | 89f4eda1b147b2072aaa2a9d1d1f2f7061b681b6 /contrib/postgres_fdw/postgres_fdw.control | |
parent | a3dc926009be833ea505eebd77ce4b72fe708b18 (diff) | |
download | postgresql-708d165ddb92c54077a372acf6417e258dcb5fef.tar.gz postgresql-708d165ddb92c54077a372acf6417e258dcb5fef.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.control')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.control | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.control b/contrib/postgres_fdw/postgres_fdw.control index f9ed490752b..d489382064c 100644 --- a/contrib/postgres_fdw/postgres_fdw.control +++ b/contrib/postgres_fdw/postgres_fdw.control @@ -1,5 +1,5 @@ # postgres_fdw extension comment = 'foreign-data wrapper for remote PostgreSQL servers' -default_version = '1.0' +default_version = '1.1' module_pathname = '$libdir/postgres_fdw' relocatable = true |