Skip to content

Commit 9cc2a71

Browse files
committed
Move BLCKSZ < 1024 check to guc.c.
1 parent e7aa8ab commit 9cc2a71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backend/utils/misc/guc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.376 2007/02/16 17:07:00 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.377 2007/02/23 21:36:18 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -3713,6 +3713,10 @@ parse_int(const char *value, int *result, int flags)
37133713
endptr += 2;
37143714
}
37153715

3716+
#if BLCKSZ < 1024
3717+
#error BLCKSZ must be >= 1024
3718+
#endif
3719+
37163720
if (used)
37173721
{
37183722
switch (flags & GUC_UNIT_MEMORY)

src/include/pg_config_manual.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* for developers. If you edit any of these, be sure to do a *full*
77
* rebuild (and an initdb if noted).
88
*
9-
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.25 2007/02/20 23:49:38 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.26 2007/02/23 21:36:19 momjian Exp $
1010
*------------------------------------------------------------------------
1111
*/
1212

@@ -25,10 +25,6 @@
2525
*/
2626
#define BLCKSZ 8192
2727

28-
#if BLCKSZ < 1024
29-
#error BLCKSZ must be >= 1024
30-
#endif
31-
3228
/*
3329
* RELSEG_SIZE is the maximum number of blocks allowed in one disk
3430
* file. Thus, the maximum size of a single file is RELSEG_SIZE *

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