cruzdb/pg_zlog

conn: avoid try/catch blocks

Closed this issue · 2 comments

conn: avoid try/catch blocks

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.

This was fixed by duplicating the get cluster connection logic and handling the errors explicitly. see connection.c for comments.