Content-Length: 260122 | pFad | http://github.com/postgrespro/postgres/commit/3fe76ab9722c2891855dd2b34261f7c23a2e5b2b

E9 Renumber confusing value for GUC_UNIT_BYTE · postgrespro/postgres@3fe76ab · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3fe76ab9722c2891855dd2b34261f7c23a2e5b2b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy