when to disconnect and when to end a pg client or pool when to disconnect and when to end a pg client or pool postgresql postgresql