From: Andres Freund Date: Mon, 11 Jan 2010 16:43:01 +0000 (+0100) Subject: Add a new error code ERRCODE_QUERY_CANCELED_HS for use with HS indicating a failure X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a0817cc40f14c60d955eea54c03b64a1f76ba8df;p=users%2Fandresfreund%2Fpostgres.git Add a new error code ERRCODE_QUERY_CANCELED_HS for use with HS indicating a failure that is more than a plain ERRCODE_QUERY_CANCELED - namely it should not be caught from various places like savepoints and in PLs. In want for a better name. --- diff --git a/src/include/utils/errcodes.h b/src/include/utils/errcodes.h index 52c09caf71..279f0e4a0f 100644 --- a/src/include/utils/errcodes.h +++ b/src/include/utils/errcodes.h @@ -328,6 +328,7 @@ /* Class 57 - Operator Intervention (class borrowed from DB2) */ #define ERRCODE_OPERATOR_INTERVENTION MAKE_SQLSTATE('5','7', '0','0','0') #define ERRCODE_QUERY_CANCELED MAKE_SQLSTATE('5','7', '0','1','4') +#define ERRCODE_QUERY_CANCELED_HS MAKE_SQLSTATE('5','7', '0','1','5') #define ERRCODE_ADMIN_SHUTDOWN MAKE_SQLSTATE('5','7', 'P','0','1') #define ERRCODE_CRASH_SHUTDOWN MAKE_SQLSTATE('5','7', 'P','0','2') #define ERRCODE_CANNOT_CONNECT_NOW MAKE_SQLSTATE('5','7', 'P','0','3')