From: Peter Eisentraut Date: Wed, 7 Sep 2022 09:03:53 +0000 (+0200) Subject: Renumber confusing value for GUC_UNIT_BYTE X-Git-Tag: REL_16_BETA1~1785 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fe76ab9722c2891855dd2b34261f7c23a2e5b2b;p=thirdparty%2Fpostgresql.git Renumber confusing value for GUC_UNIT_BYTE It had a power-of-two value, which looks right, and causes the other values which aren't powers-of-two to look wrong. But this is tested for equality and not a bitwise test. See also: 6e7baa322773ff8c79d4d8883c99fdeff5bfa679 https://www.postgresql.org/message-id/CAOG9ApEu8bXVwBxkOO9J7ZpM76TASK_vFMEEiCEjwhMmSLiaqQ%40mail.gmail.com Author: Justin Pryzby Discussion: https://www.postgresql.org/message-id/flat/20220720145220.GJ12702@telsasoft.com --- diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index 45ae1b537f3..5da17a48495 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -223,7 +223,7 @@ typedef enum #define GUC_UNIT_BLOCKS 0x2000 /* value is in blocks */ #define GUC_UNIT_XBLOCKS 0x3000 /* value is in xlog blocks */ #define GUC_UNIT_MB 0x4000 /* value is in megabytes */ -#define GUC_UNIT_BYTE 0x8000 /* value is in bytes */ +#define GUC_UNIT_BYTE 0x5000 /* value is in bytes */ #define GUC_UNIT_MEMORY 0xF000 /* mask for size-related units */ #define GUC_UNIT_MS 0x10000 /* value is in milliseconds */