forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit374bb5d
committed
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 thevalue of BLCKSZ _at_their_own_risk_. By that, I mean that I'vetried it here at 4096 and 16384 with no ill-effects. A valueof 4096 _shouldn't_ affect much as far as the kernel/file systemgoes, but making it bigger than 8192 can have severe consequencesif 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 andthe partition that I was running under went to hell in a handbasket. 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 = 8192and everything is as before. It basically only cleans up all of thereferences to BLCKSZ in the code.If this patch is applied, a comment in the config.h file though abovethe BLCKSZ define with warning about monkeying around with it wouldbe a good idea.Darren darrenk@insightdist.com(Also cleans up some of the #includes in files referencing BLCKSZ.)==========================================1 parentf0445dc commit374bb5d
File tree
15 files changed
+150
-161
lines changed- src
- backend
- access/nbtree
- catalog
- executor
- optimizer/path
- rewrite
- storage
- buffer
- smgr
- tcop
- utils
- adt
- sort
- include/storage
15 files changed
+150
-161
lines changedLines changed: 10 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
| 52 | + | |
58 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
59 | 58 |
| |
60 | 59 |
| |
61 | 60 |
| |
| |||
64 | 63 |
| |
65 | 64 |
| |
66 | 65 |
| |
67 |
| - | |
| 66 | + | |
68 | 67 |
| |
69 | 68 |
| |
70 | 69 |
| |
| |||
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
| 87 | + | |
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
| |||
458 | 457 |
| |
459 | 458 |
| |
460 | 459 |
| |
461 |
| - | |
| 460 | + | |
462 | 461 |
| |
463 | 462 |
| |
464 | 463 |
| |
| |||
496 | 495 |
| |
497 | 496 |
| |
498 | 497 |
| |
499 |
| - | |
| 498 | + | |
500 | 499 |
| |
501 | 500 |
| |
502 | 501 |
| |
|
Lines changed: 28 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
54 | 53 |
| |
55 | 54 |
| |
56 | 55 |
| |
|
Lines changed: 3 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 34 | + | |
38 | 35 |
| |
39 | 36 |
| |
40 | 37 |
| |
41 |
| - | |
42 |
| - | |
| 38 | + | |
43 | 39 |
| |
44 | 40 |
| |
45 | 41 |
| |
|
Lines changed: 3 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 | 20 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
| 21 | + | |
26 | 22 |
| |
| 23 | + | |
27 | 24 |
| |
28 | 25 |
| |
29 |
| - | |
30 | 26 |
| |
31 | 27 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 28 |
| |
36 | 29 |
| |
37 | 30 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 | 17 |
| |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 | 30 |
| |
32 |
| - | |
33 | 31 |
| |
34 | 32 |
| |
35 | 33 |
| |
36 | 34 |
| |
37 |
| - | |
38 |
| - | |
| 35 | + | |
39 | 36 |
| |
40 | 37 |
| |
41 | 38 |
| |
|
Lines changed: 14 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 |
| |
| 29 | + | |
24 | 30 |
| |
25 | 31 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 32 |
| |
35 |
| - | |
36 |
| - | |
37 | 33 |
| |
| 34 | + | |
38 | 35 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
43 | 39 |
| |
44 |
| - | |
| 40 | + | |
| 41 | + | |
45 | 42 |
| |
46 | 43 |
| |
47 | 44 |
| |
|
Lines changed: 8 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 |
| - | |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 | 20 |
| |
| 21 | + | |
26 | 22 |
| |
27 |
| - | |
28 | 23 |
| |
29 | 24 |
| |
30 | 25 |
| |
31 | 26 |
| |
32 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
33 | 32 |
| |
34 | 33 |
| |
35 | 34 |
| |
| |||
39 | 38 |
| |
40 | 39 |
| |
41 | 40 |
| |
42 |
| - | |
| 41 | + | |
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
|
Lines changed: 18 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 |
| - | |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 | 29 |
| |
32 | 30 |
| |
33 | 31 |
| |
| |||
59 | 57 |
| |
60 | 58 |
| |
61 | 59 |
| |
62 |
| - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
63 | 76 |
| |
64 | 77 |
| |
65 | 78 |
| |
|
0 commit comments
Comments
(0)