* Disconnect any open connection for a connection cache entry. */
| 455 | * Disconnect any open connection for a connection cache entry. |
| 456 | */ |
| 457 | static void |
| 458 | disconnect_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 |
no test coverage detected