aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-02-23 21:36:19 +0000
committerBruce Momjian <bruce@momjian.us>2007-02-23 21:36:19 +0000
commit9cc2a71c3818f9670be989435c2021af407e87ce (patch)
tree4c62ad97a5465a148093f09fd9ca681bac682d89 /src
parente7aa8ab2abc56a0137fb91f2f121bef11912d72e (diff)
downloadpostgresql-9cc2a71c3818f9670be989435c2021af407e87ce.tar.gz
postgresql-9cc2a71c3818f9670be989435c2021af407e87ce.zip
Move BLCKSZ < 1024 check to guc.c.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/misc/guc.c6
-rw-r--r--src/include/pg_config_manual.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index dd84d65f890..12d5ecf181f 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.376 2007/02/16 17:07:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.377 2007/02/23 21:36:18 momjian Exp $
*
*--------------------------------------------------------------------
*/
@@ -3713,6 +3713,10 @@ parse_int(const char *value, int *result, int flags)
endptr += 2;
}
+#if BLCKSZ < 1024
+#error BLCKSZ must be >= 1024
+#endif
+
if (used)
{
switch (flags & GUC_UNIT_MEMORY)
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index fba9ffac235..a5b3f98a8eb 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -6,7 +6,7 @@
* for developers. If you edit any of these, be sure to do a *full*
* rebuild (and an initdb if noted).
*
- * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.25 2007/02/20 23:49:38 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.26 2007/02/23 21:36:19 momjian Exp $
*------------------------------------------------------------------------
*/
@@ -25,10 +25,6 @@
*/
#define BLCKSZ 8192
-#if BLCKSZ < 1024
-#error BLCKSZ must be >= 1024
-#endif
-
/*
* RELSEG_SIZE is the maximum number of blocks allowed in one disk
* file. Thus, the maximum size of a single file is RELSEG_SIZE *