From ab9bf507f18af7dce1447ccc60077f51e5df7acf Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 17 Feb 2018 10:19:21 -0500 Subject: [PATCH v1 5/8] Change transaction state debug strings to match enum symbols In some cases, these were different for no apparent reason, making debugging unnecessarily mysterious. --- src/backend/access/transam/xact.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 4709eabf4d..15edc93d91 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -5141,29 +5141,29 @@ BlockStateAsString(TBlockState blockState) case TBLOCK_ABORT: return "ABORT"; case TBLOCK_ABORT_END: - return "ABORT END"; + return "ABORT_END"; case TBLOCK_ABORT_PENDING: - return "ABORT PEND"; + return "ABORT_PENDING"; case TBLOCK_PREPARE: return "PREPARE"; case TBLOCK_SUBBEGIN: - return "SUB BEGIN"; + return "SUBBEGIN"; case TBLOCK_SUBINPROGRESS: - return "SUB INPROGRS"; + return "SUBINPROGRESS"; case TBLOCK_SUBRELEASE: - return "SUB RELEASE"; + return "SUBRELEASE"; case TBLOCK_SUBCOMMIT: - return "SUB COMMIT"; + return "SUBCOMMIT"; case TBLOCK_SUBABORT: - return "SUB ABORT"; + return "SUBABORT"; case TBLOCK_SUBABORT_END: - return "SUB ABORT END"; + return "SUBABORT_END"; case TBLOCK_SUBABORT_PENDING: - return "SUB ABRT PEND"; + return "SUBABORT_PENDING"; case TBLOCK_SUBRESTART: - return "SUB RESTART"; + return "SUBRESTART"; case TBLOCK_SUBABORT_RESTART: - return "SUB AB RESTRT"; + return "SUBABORT_RESTART"; } return "UNRECOGNIZED"; } @@ -5182,7 +5182,7 @@ TransStateAsString(TransState state) case TRANS_START: return "START"; case TRANS_INPROGRESS: - return "INPROGR"; + return "INPROGRESS"; case TRANS_COMMIT: return "COMMIT"; case TRANS_ABORT: -- 2.16.2