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:
parent
3c73a0204a
commit
3c13a0d05e
@ -77,6 +77,11 @@ disconnect(void)
|
|||||||
pgut_disconnect(connection);
|
pgut_disconnect(connection);
|
||||||
connection = NULL;
|
connection = NULL;
|
||||||
}
|
}
|
||||||
|
if (conn2)
|
||||||
|
{
|
||||||
|
pgut_disconnect(conn2);
|
||||||
|
conn2 = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user