forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite6241d8
committed
Rethink definition of pg_attribute.attcompression.
Redefine '\0' (InvalidCompressionMethod) as meaning "if we need tocompress, use the current setting of default_toast_compression".This allows '\0' to be a suitable default choice regardless ofdatatype, greatly simplifying code paths that initialize tupledescsand the like. It seems like a more user-friendly approach as well,because now the default compression choice doesn't migrate into tabledefinitions, meaning that changing default_toast_compression isusually sufficient to flip an installation's behavior; one needn'ttediously issue per-column ALTER SET COMPRESSION commands.Along the way, fix a few minor bugs and documentation issueswith the per-column-compression feature. Adopt more robustAPIs for SetIndexStorageProperties and GetAttributeCompression.Bump catversion because typical contents of attcompression will nowbe different. We could get away without doing that, but it seemsbetter to ensure v14 installations all agree on this. (We alreadyforced initdb for beta2, anyway.)Discussion:https://postgr.es/m/626613.1621787110@sss.pgh.pa.us1 parenta717e5c commite6241d8
File tree
29 files changed
+257
-380
lines changed- doc/src/sgml
- ref
- src
- backend
- access
- brin
- common
- heap
- bootstrap
- catalog
- commands
- parser
- utils/misc
- bin
- pg_dump
- psql
- include
- access
- catalog
- test/regress
- expected
- sql
29 files changed
+257
-380
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1261 | 1261 |
| |
1262 | 1262 |
| |
1263 | 1263 |
| |
1264 |
| - | |
1265 |
| - | |
1266 |
| - | |
1267 |
| - | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
1268 | 1272 |
| |
1269 | 1273 |
| |
1270 | 1274 |
| |
|
Lines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8256 | 8256 |
| |
8257 | 8257 |
| |
8258 | 8258 |
| |
8259 |
| - | |
8260 |
| - | |
8261 |
| - | |
8262 |
| - | |
8263 |
| - | |
8264 |
| - | |
8265 |
| - | |
| 8259 | + | |
| 8260 | + | |
| 8261 | + | |
| 8262 | + | |
| 8263 | + | |
| 8264 | + | |
| 8265 | + | |
| 8266 | + | |
8266 | 8267 |
| |
8267 | 8268 |
| |
8268 | 8269 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26253 | 26253 |
| |
26254 | 26254 |
| |
26255 | 26255 |
| |
26256 |
| - | |
| 26256 | + | |
26257 | 26257 |
| |
26258 | 26258 |
| |
26259 |
| - | |
| 26259 | + | |
26260 | 26260 |
| |
26261 | 26261 |
| |
26262 | 26262 |
| |
|
Lines changed: 16 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
| |||
391 | 390 |
| |
392 | 391 |
| |
393 | 392 |
| |
394 |
| - | |
395 |
| - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
408 | 406 |
| |
409 | 407 |
| |
410 |
| - | |
411 |
| - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
412 | 414 |
| |
413 | 415 |
| |
414 | 416 |
| |
|
Lines changed: 15 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
300 | 301 |
| |
301 |
| - | |
| 302 | + | |
302 | 303 |
| |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
307 | 312 |
| |
308 | 313 |
| |
309 | 314 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
975 | 975 |
| |
976 | 976 |
| |
977 | 977 |
| |
978 |
| - | |
979 |
| - | |
| 978 | + | |
| 979 | + | |
980 | 980 |
| |
981 | 981 |
| |
982 | 982 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
467 |
| - | |
468 |
| - | |
| 467 | + | |
| 468 | + | |
469 | 469 |
| |
470 | 470 |
| |
471 | 471 |
| |
472 |
| - | |
| 472 | + | |
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
|
Lines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
379 | 389 |
| |
380 | 390 |
| |
381 | 391 |
| |
| |||
392 | 402 |
| |
393 | 403 |
| |
394 | 404 |
| |
395 |
| - | |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 | 405 |
| |
403 | 406 |
| |
404 | 407 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 |
| - | |
236 |
| - | |
| 235 | + | |
237 | 236 |
| |
238 | 237 |
| |
239 |
| - | |
| 238 | + | |
240 | 239 |
| |
241 | 240 |
| |
242 | 241 |
| |
|
Lines changed: 2 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 | 107 |
| |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
| 108 | + | |
| 109 | + | |
119 | 110 |
| |
120 | 111 |
| |
121 | 112 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
57 |
| - | |
58 | 56 |
| |
59 | 57 |
| |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
642 | 642 |
| |
643 | 643 |
| |
644 | 644 |
| |
645 |
| - | |
646 |
| - | |
647 |
| - | |
648 |
| - | |
| 645 | + | |
649 | 646 |
| |
650 | 647 |
| |
651 | 648 |
| |
| |||
711 | 708 |
| |
712 | 709 |
| |
713 | 710 |
| |
714 |
| - | |
| 711 | + | |
715 | 712 |
| |
716 | 713 |
| |
717 | 714 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2483 | 2483 |
| |
2484 | 2484 |
| |
2485 | 2485 |
| |
2486 |
| - | |
2487 | 2486 |
| |
2488 | 2487 |
| |
2489 | 2488 |
| |
| 2489 | + | |
2490 | 2490 |
| |
2491 | 2491 |
| |
2492 | 2492 |
| |
| |||
2495 | 2495 |
| |
2496 | 2496 |
| |
2497 | 2497 |
| |
2498 |
| - | |
| 2498 | + | |
2499 | 2499 |
| |
2500 | 2500 |
| |
2501 | 2501 |
| |
| |||
2506 | 2506 |
| |
2507 | 2507 |
| |
2508 | 2508 |
| |
| 2509 | + | |
2509 | 2510 |
| |
2510 | 2511 |
| |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
2511 | 2517 |
| |
2512 |
| - | |
| 2518 | + | |
2513 | 2519 |
| |
2514 | 2520 |
| |
2515 | 2521 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
701 | 701 |
| |
702 | 702 |
| |
703 | 703 |
| |
| 704 | + | |
704 | 705 |
| |
705 | 706 |
| |
706 | 707 |
| |
| |||
715 | 716 |
| |
716 | 717 |
| |
717 | 718 |
| |
| 719 | + | |
718 | 720 |
| |
719 | 721 |
| |
720 | 722 |
| |
| |||
724 | 726 |
| |
725 | 727 |
| |
726 | 728 |
| |
727 |
| - | |
728 |
| - | |
729 |
| - | |
730 |
| - | |
731 |
| - | |
732 | 729 |
| |
733 | 730 |
| |
734 | 731 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
899 | 899 |
| |
900 | 900 |
| |
901 | 901 |
| |
902 |
| - | |
903 |
| - | |
904 |
| - | |
| 902 | + | |
905 | 903 |
| |
906 | 904 |
| |
907 | 905 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1719 | 1719 |
| |
1720 | 1720 |
| |
1721 | 1721 |
| |
1722 |
| - | |
1723 |
| - | |
1724 | 1722 |
| |
1725 | 1723 |
| |
1726 | 1724 |
| |
|
0 commit comments
Comments
(0)