Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helper SQL: Explicitly include QUERY_CANCELED in exception catching
Per the Postgres documentation at https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING "The special condition name OTHERS matches every error type except QUERY_CANCELED and ASSERT_FAILURE.", thus we need to explicitly include the QUERY_CANCELED in order to deallocate the statement in case of statement timeouts. Since we don't use asserts, we do not need to catch ASSERT_FAILURE.
- Loading branch information