Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5e874b2

Browse files
peterepull[bot]
authored andcommitted
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: 6e7baa3 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
1 parent 65e32f3 commit 5e874b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/utils/guc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ typedef enum
223223
#define GUC_UNIT_BLOCKS 0x2000 /* value is in blocks */
224224
#define GUC_UNIT_XBLOCKS 0x3000 /* value is in xlog blocks */
225225
#define GUC_UNIT_MB 0x4000 /* value is in megabytes */
226-
#define GUC_UNIT_BYTE 0x8000 /* value is in bytes */
226+
#define GUC_UNIT_BYTE 0x5000 /* value is in bytes */
227227
#define GUC_UNIT_MEMORY 0xF000 /* mask for size-related units */
228228

229229
#define GUC_UNIT_MS 0x10000 /* value is in milliseconds */

0 commit comments

Comments
 (0)