MCPcopy Create free account
hub / github.com/apache/cloudberry / disconnect_pg_server

Function disconnect_pg_server

contrib/postgres_fdw/connection.c:457–466  ·  view source on GitHub ↗

* Disconnect any open connection for a connection cache entry. */

Source from the content-addressed store, hash-verified

455 * Disconnect any open connection for a connection cache entry.
456 */
457static void
458disconnect_pg_server(ConnCacheEntry *entry)
459{
460 if (entry->conn != NULL)
461 {
462 PQfinish(entry->conn);
463 entry->conn = NULL;
464 ReleaseExternalFD();
465 }
466}
467
468/*
469 * Return true if the password_required is defined and false for this user

Callers 5

GetConnectionFunction · 0.85
pgfdw_xact_callbackFunction · 0.85
pgfdw_inval_callbackFunction · 0.85

Calls 2

PQfinishFunction · 0.85
ReleaseExternalFDFunction · 0.85

Tested by

no test coverage detected