Skip to content

Commit 3fe76ab

Browse files
committed
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 0e48038 commit 3fe76ab

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy