aboutsummaryrefslogtreecommitdiff
path: root/src/backend/rewrite/rewriteDefine.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-01-13 04:05:12 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-01-13 04:05:12 +0000
commit374bb5d2610d0f520abbc602bbf1d6b9c533f335 (patch)
tree1d0fbc84ce15ea7d9d077ecad5cf96a0ec8a69c5 /src/backend/rewrite/rewriteDefine.c
parentf0445dcbc417f03b79f4502570732924b39e5cc5 (diff)
downloadpostgresql-374bb5d2610d0f520abbc602bbf1d6b9c533f335.tar.gz
postgresql-374bb5d2610d0f520abbc602bbf1d6b9c533f335.zip
Some *very* major changes by darrenk@insightdist.com (Darren King)
========================================== What follows is a set of diffs that cleans up the usage of BLCKSZ. As a side effect, the person compiling the code can change the value of BLCKSZ _at_their_own_risk_. By that, I mean that I've tried it here at 4096 and 16384 with no ill-effects. A value of 4096 _shouldn't_ affect much as far as the kernel/file system goes, but making it bigger than 8192 can have severe consequences if you don't know what you're doing. 16394 worked for me, _BUT_ when I went to 32768 and did an initdb, the SCSI driver broke and the partition that I was running under went to hell in a hand basket. Had to reboot and do a good bit of fsck'ing to fix things up. The patch can be safely applied though. Just leave BLCKSZ = 8192 and everything is as before. It basically only cleans up all of the references to BLCKSZ in the code. If this patch is applied, a comment in the config.h file though above the BLCKSZ define with warning about monkeying around with it would be a good idea. Darren darrenk@insightdist.com (Also cleans up some of the #includes in files referencing BLCKSZ.) ==========================================
Diffstat (limited to 'src/backend/rewrite/rewriteDefine.c')
-rw-r--r--src/backend/rewrite/rewriteDefine.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/backend/rewrite/rewriteDefine.c b/src/backend/rewrite/rewriteDefine.c
index c95be222a93..3997ad3f391 100644
--- a/src/backend/rewrite/rewriteDefine.c
+++ b/src/backend/rewrite/rewriteDefine.c
@@ -7,29 +7,28 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.13 1998/01/07 21:04:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.14 1998/01/13 04:04:12 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <string.h>
+
#include "postgres.h"
-#include "utils/rel.h" /* for Relation stuff */
#include "access/heapam.h" /* access methods like amopenr */
-#include "utils/builtins.h"
-#include "utils/elog.h" /* for elog */
-#include "utils/palloc.h"
-#include "utils/lsyscache.h" /* for get_typlen */
-#include "nodes/pg_list.h" /* for Lisp support */
#include "nodes/parsenodes.h"
+#include "nodes/pg_list.h" /* for Lisp support */
#include "parser/parse_relation.h"
-
#include "rewrite/locks.h"
#include "rewrite/rewriteDefine.h"
#include "rewrite/rewriteRemove.h"
#include "rewrite/rewriteSupport.h"
#include "tcop/tcopprot.h"
+#include "utils/builtins.h"
+#include "utils/lsyscache.h" /* for get_typlen */
+#include "utils/rel.h" /* for Relation stuff */
+
Oid LastOidProcessed = InvalidOid;
@@ -39,7 +38,7 @@ Oid LastOidProcessed = InvalidOid;
*
* should this be smaller?
*/
-#define RULE_PLAN_SIZE 8192
+#define RULE_PLAN_SIZE BLCKSZ
static void
strcpyq(char *dest, char *source)