Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9cc2a71

Browse files
committed
Move BLCKSZ < 1024 check to guc.c.
1 parente7aa8ab commit9cc2a71

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+
#ifBLCKSZ<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
#defineBLCKSZ8192
2727

28-
#ifBLCKSZ<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)

[8]ページ先頭

©2009-2025 Movatter.jp