Renumber confusing value for GUC_UNIT_BYTE
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 7 Sep 2022 09:03:53 +0000 (11:03 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 7 Sep 2022 09:03:53 +0000 (11:03 +0200)
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 <pryzby@telsasoft.com>
Discussion: https://www.postgresql.org/message-id/flat/20220720145220.GJ12702@telsasoft.com

src/include/utils/guc.h

index 45ae1b537f3cd781026a76ce2a2edc66f9197ad4..5da17a48495a48f8a5da413e0acaab4ef84e5284 100644 (file)
@@ -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 */