forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite5595de
committed
Tidy up more loose ends related to configurable TOAST compression.
Change the default_toast_compression GUC to be an enum rather thana string. Earlier, uncommitted versions of the patch supported usingCREATE ACCESS METHOD to add new compression methods to a runningsystem, but that idea was dropped before commit. So, we can simplifythe GUC handling as well, which has the nice side effect of improvingthe error messages.While updating the documentation to reflect the new GUC type, alsomove it back to the right place in the list. I moved this whilerevising what became commit24f0e39,but apparently the intended ordering is "alphabetical" rather than"whatever Robert thinks looks nice."Rejigger things to avoid having access/toast_compression.h depend onutils/guc.h, so that we don't end up with every file that includesit also depending on something largely unrelated. Move a fewinline functions back into the C source file partly to help reducedependencies and partly just to avoid clutter. A few very minorcosmetic fixes.Original patch by Justin Pryzby, but very heavily edited by me,and reverse reviewed by him and also reviewed by by Tom Lane.Discussion:http://postgr.es/m/CA+TgmoYp=GT_ztUCeZg2i4hkHAQv8o=-nVJ1-TKWTG1zQOmOpg@mail.gmail.com1 parent49ab61f commite5595de
File tree
6 files changed
+107
-135
lines changed- doc/src/sgml
- src
- backend
- access/common
- utils/misc
- include/access
- test/regress/expected
6 files changed
+107
-135
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8085 | 8085 |
| |
8086 | 8086 |
| |
8087 | 8087 |
| |
8088 |
| - | |
8089 |
| - | |
8090 |
| - | |
8091 |
| - | |
8092 |
| - | |
8093 |
| - | |
8094 |
| - | |
8095 |
| - | |
8096 |
| - | |
8097 |
| - | |
8098 |
| - | |
8099 |
| - | |
8100 |
| - | |
8101 |
| - | |
8102 |
| - | |
8103 |
| - | |
8104 |
| - | |
8105 |
| - | |
8106 |
| - | |
8107 |
| - | |
8108 |
| - | |
8109 |
| - | |
8110 | 8088 |
| |
8111 | 8089 |
| |
8112 | 8090 |
| |
| |||
8150 | 8128 |
| |
8151 | 8129 |
| |
8152 | 8130 |
| |
| 8131 | + | |
| 8132 | + | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
8153 | 8153 |
| |
8154 | 8154 |
| |
8155 | 8155 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 |
| |
29 | 36 |
| |
30 | 37 |
| |
| |||
271 | 278 |
| |
272 | 279 |
| |
273 | 280 |
| |
274 |
| - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
275 | 285 |
| |
276 |
| - | |
277 |
| - | |
| 286 | + | |
| 287 | + | |
278 | 288 |
| |
279 |
| - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
280 | 292 |
| |
281 |
| - | |
282 |
| - | |
283 |
| - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
284 | 297 |
| |
285 | 298 |
| |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
| 299 | + | |
| 300 | + | |
292 | 301 |
| |
293 |
| - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
294 | 309 |
| |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 |
| |
314 |
| - | |
315 |
| - | |
316 | 318 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
512 | 520 |
| |
513 | 521 |
| |
514 | 522 |
| |
| |||
3933 | 3941 |
| |
3934 | 3942 |
| |
3935 | 3943 |
| |
3936 |
| - | |
3937 |
| - | |
3938 |
| - | |
3939 |
| - | |
3940 |
| - | |
3941 |
| - | |
3942 |
| - | |
3943 |
| - | |
3944 |
| - | |
3945 |
| - | |
3946 |
| - | |
3947 | 3944 |
| |
3948 | 3945 |
| |
3949 | 3946 |
| |
| |||
4585 | 4582 |
| |
4586 | 4583 |
| |
4587 | 4584 |
| |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
| 4593 | + | |
| 4594 | + | |
| 4595 | + | |
4588 | 4596 |
| |
4589 | 4597 |
| |
4590 | 4598 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 |
| |
29 | 37 |
| |
30 | 38 |
| |
| |||
39 | 47 |
| |
40 | 48 |
| |
41 | 49 |
| |
| 50 | + | |
42 | 51 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 | 57 |
| |
97 | 58 |
| |
98 | 59 |
| |
| |||
101 | 62 |
| |
102 | 63 |
| |
103 | 64 |
| |
104 |
| - | |
| 65 | + | |
105 | 66 |
| |
106 | 67 |
| |
107 | 68 |
| |
| |||
115 | 76 |
| |
116 | 77 |
| |
117 | 78 |
| |
| 79 | + | |
| 80 | + | |
118 | 81 |
| |
119 |
| - | |
120 |
| - | |
| 82 | + | |
| 83 | + | |
121 | 84 |
| |
122 | 85 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
237 |
| - | |
| 237 | + | |
238 | 238 |
| |
239 | 239 |
| |
240 |
| - | |
| 240 | + | |
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
| 230 | + | |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 |
| - | |
236 |
| - | |
237 |
| - | |
| 235 | + | |
| 236 | + | |
238 | 237 |
| |
239 | 238 |
| |
240 | 239 |
| |
|
0 commit comments
Comments
(0)