Skip to content

Commit 5472ed3

Browse files
committed
Make min_parallel_relation_size's default value platform-independent.
The documentation states that the default value is 8MB, but this was only true at BLCKSZ = 8kB, because the default was hard-coded as 1024. Make the code match the docs by computing the default as 8MB/BLCKSZ. Oversight in commit 75be664, noted pursuant to a gripe from Peter E. Discussion: <90634e20-097a-e4fd-67d5-fb2c42f0dd71@2ndquadrant.com>
1 parent 8a50352 commit 5472ed3

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/misc

1 file changed

+1
-1
lines changed

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ static struct config_int ConfigureNamesInt[] =
27582758
GUC_UNIT_BLOCKS,
27592759
},
27602760
&min_parallel_relation_size,
2761-
1024, 0, INT_MAX / 3,
2761+
(8 * 1024 * 1024) / BLCKSZ, 0, INT_MAX / 3,
27622762
NULL, NULL, NULL
27632763
},
27642764

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