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.) ==========================================
Showing
- src/backend/access/nbtree/nbtsort.c 10 additions, 11 deletionssrc/backend/access/nbtree/nbtsort.c
- src/backend/catalog/index.c 28 additions, 29 deletionssrc/backend/catalog/index.c
- src/backend/executor/nodeHash.c 3 additions, 7 deletionssrc/backend/executor/nodeHash.c
- src/backend/executor/nodeHashjoin.c 3 additions, 10 deletionssrc/backend/executor/nodeHashjoin.c
- src/backend/optimizer/path/costsize.c 3 additions, 6 deletionssrc/backend/optimizer/path/costsize.c
- src/backend/optimizer/path/xfunc.c 14 additions, 17 deletionssrc/backend/optimizer/path/xfunc.c
- src/backend/rewrite/rewriteDefine.c 8 additions, 9 deletionssrc/backend/rewrite/rewriteDefine.c
- src/backend/storage/buffer/localbuf.c 1 addition, 2 deletionssrc/backend/storage/buffer/localbuf.c
- src/backend/storage/smgr/md.c 18 additions, 5 deletionssrc/backend/storage/smgr/md.c
- src/backend/tcop/postgres.c 25 additions, 31 deletionssrc/backend/tcop/postgres.c
- src/backend/utils/adt/chunk.c 6 additions, 11 deletionssrc/backend/utils/adt/chunk.c
- src/backend/utils/sort/psort.c 9 additions, 14 deletionssrc/backend/utils/sort/psort.c
- src/include/storage/bufmgr.h 7 additions, 3 deletionssrc/include/storage/bufmgr.h
- src/include/storage/bufpage.h 11 additions, 2 deletionssrc/include/storage/bufpage.h
- src/include/storage/itemid.h 4 additions, 4 deletionssrc/include/storage/itemid.h
Loading
Please register or sign in to comment