Don't forget to disconnect conn2 when disconnect() is called, otherwise
we leave a connection hanging open for every database processed via pg_repack -a.
This commit is contained in:
		| @ -77,6 +77,11 @@ disconnect(void) | ||||
| 		pgut_disconnect(connection); | ||||
| 		connection = NULL; | ||||
| 	} | ||||
| 	if (conn2) | ||||
| 	{ | ||||
| 		pgut_disconnect(conn2); | ||||
| 		conn2 = NULL; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| static void | ||||
|  | ||||
		Reference in New Issue
	
	Block a user