> > Here is how I'm making 4 separate patches: > > 1. new function and it's documentation. > 2. GUC and it's documentation. > 3. server level option and it's documentation. > 4. test cases for all of the above patches. >
Hi, I'm attaching the patches here. Note that, though the code changes for this feature are small, I divided them up as separate patches to make review easy. v1-0001-postgres_fdw-function-to-discard-cached-connections.patch This patch adds a new function that gets defined as part of CREATE EXTENSION postgres_fdw; postgres_fdw_disconnect() when called with a foreign server name discards the associated connections with the server name. When called without any argument, discards all the existing cached connections. v1-0002-postgres_fdw-add-keep_connections-GUC-to-not-cache-connections.patch This patch adds a new GUC postgres_fdw.keep_connections, default being on, when set to off no remote connections are cached by the local session. v1-0003-postgres_fdw-server-level-option-keep_connection.patch This patch adds a new server level option, keep_connection, default being on, when set to off, the local session doesn't cache the connections associated with the foreign server. v1-0004-postgres_fdw-connection-cache-discard-tests-and-documentation.patch This patch adds the tests and documentation related to this feature. Please review the patches. With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
v1-0001-postgres_fdw-function-to-discard-cached-connections.patch
Description: Binary data
v1-0002-postgres_fdw-add-keep_connections-GUC-to-not-cache-connections.patch
Description: Binary data
v1-0003-postgres_fdw-server-level-option-keep_connection.patch
Description: Binary data
v1-0004-postgres_fdw-connection-cache-discard-tests-and-documentation.patch
Description: Binary data