conn: avoid try/catch blocks
Closed this issue · 2 comments
dotnwat commented
conn: avoid try/catch blocks
dotnwat commented
The PG documentation states that volatile-ness of data shared between try and catch blocks needs to be handled correctly. Currently we ignore this, but a better solution is to refactor some of the shared routines in connection.c to allow us to avoid the try/catch blocks.
dotnwat commented
This was fixed by duplicating the get cluster connection logic and handling the errors explicitly. see connection.c for comments.