summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-01-26 03:54:46 +0900
committerFujii Masao <fujii@postgresql.org>2021-01-26 15:35:54 +0900
commit411ae64997dc3a42d19eda6721c581841ce2cb82 (patch)
treefd253810b075cc53cc2522b5bd55e2cf035abfd9 /src/backend/access/gist/gist.c
parentee895a655ce4341546facd6f23e3e8f2931b96bf (diff)
downloadpostgresql-411ae64997dc3a42d19eda6721c581841ce2cb82.tar.gz
postgres_fdw: Add functions to discard cached connections.
This commit introduces two new functions postgres_fdw_disconnect() and postgres_fdw_disconnect_all(). The former function discards the cached connections to the specified foreign server. The latter discards all the cached connections. If the connection is used in the current transaction, it's not closed and a warning message is emitted. For example, these functions are useful when users want to explicitly close the foreign server connections that are no longer necessary and then to prevent them from eating up the foreign servers connections capacity. Author: Bharath Rupireddy, tweaked a bit by Fujii Masao Reviewed-by: Alexey Kondratov, Zhijie Hou, Zhihong Yu, Fujii Masao Discussion: https://postgr.es/m/CALj2ACVvrp5=AVp2PupEm+nAC8S4buqR3fJMmaCoc7ftT0aD2A@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions