- Notifications
You must be signed in to change notification settings - Fork5
Commit52e6e33
committed
Create a distinction between a populated matview and a scannable one.
The intent was that being populated would, long term, be just oneof the conditions which could affect whether a matview wasscannable; being populated should be necessary but not alwayssufficient to scan the relation. Since only CREATE and REFRESHcurrently determine the scannability, names and commentsaccidentally conflated these concepts, leading to confusion.Also add missing locking for the SQL function which allows atest for scannability, and fix a modularity violatiion.Per complaints from Tom Lane, although its not clear that thesewill satisfy his concerns. Hopefully this will at least betterframe the discussion.1 parent0bf42a5 commit52e6e33
File tree
10 files changed
+81
-58
lines changed- src
- backend
- commands
- executor
- rewrite
- utils
- adt
- cache
- bin/pg_dump
- include
- commands
- utils
10 files changed
+81
-58
lines changedLines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
388 | 389 |
| |
389 | 390 |
| |
390 |
| - | |
| 391 | + | |
391 | 392 |
| |
392 | 393 |
| |
393 | 394 |
| |
| |||
923 | 924 |
| |
924 | 925 |
| |
925 | 926 |
| |
926 |
| - | |
| 927 | + | |
927 | 928 |
| |
928 | 929 |
| |
929 | 930 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
420 |
| - | |
| 420 | + | |
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
|
Lines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
56 |
| - | |
| 55 | + | |
| 56 | + | |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
60 |
| - | |
| 58 | + | |
| 59 | + | |
61 | 60 |
| |
62 | 61 |
| |
63 | 62 |
| |
64 | 63 |
| |
65 |
| - | |
| 64 | + | |
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
70 |
| - | |
| 69 | + | |
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
| |||
323 | 322 |
| |
324 | 323 |
| |
325 | 324 |
| |
326 |
| - | |
| 325 | + | |
327 | 326 |
| |
328 | 327 |
| |
329 | 328 |
| |
|
Lines changed: 30 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
502 |
| - | |
| 502 | + | |
| 503 | + | |
503 | 504 |
| |
504 | 505 |
| |
505 | 506 |
| |
| |||
513 | 514 |
| |
514 | 515 |
| |
515 | 516 |
| |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
| 517 | + | |
| 518 | + | |
523 | 519 |
| |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
535 | 530 |
| |
536 | 531 |
| |
537 | 532 |
| |
538 | 533 |
| |
539 |
| - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
540 | 538 |
| |
541 |
| - | |
| 539 | + | |
542 | 540 |
| |
543 | 541 |
| |
544 | 542 |
| |
545 | 543 |
| |
546 | 544 |
| |
547 | 545 |
| |
548 | 546 |
| |
549 |
| - | |
550 |
| - | |
551 |
| - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
552 | 550 |
| |
553 | 551 |
| |
554 | 552 |
| |
| |||
945 | 943 |
| |
946 | 944 |
| |
947 | 945 |
| |
948 |
| - | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
949 | 954 |
| |
950 | 955 |
| |
951 | 956 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1615 | 1615 |
| |
1616 | 1616 |
| |
1617 | 1617 |
| |
1618 |
| - | |
| 1618 | + | |
| 1619 | + | |
1619 | 1620 |
| |
1620 | 1621 |
| |
1621 | 1622 |
| |
|
Lines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
840 | 840 |
| |
841 | 841 |
| |
842 | 842 |
| |
843 |
| - | |
| 843 | + | |
| 844 | + | |
844 | 845 |
| |
845 | 846 |
| |
846 | 847 |
| |
| |||
850 | 851 |
| |
851 | 852 |
| |
852 | 853 |
| |
853 |
| - | |
854 |
| - | |
855 |
| - | |
| 854 | + | |
856 | 855 |
| |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
857 | 862 |
| |
858 | 863 |
|
Lines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
958 | 958 |
| |
959 | 959 |
| |
960 | 960 |
| |
961 |
| - | |
| 961 | + | |
962 | 962 |
| |
963 |
| - | |
| 963 | + | |
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
| |||
1531 | 1531 |
| |
1532 | 1532 |
| |
1533 | 1533 |
| |
1534 |
| - | |
| 1534 | + | |
1535 | 1535 |
| |
1536 | 1536 |
| |
1537 | 1537 |
| |
| |||
1756 | 1756 |
| |
1757 | 1757 |
| |
1758 | 1758 |
| |
1759 |
| - | |
| 1759 | + | |
1760 | 1760 |
| |
1761 | 1761 |
| |
1762 | 1762 |
| |
| |||
1907 | 1907 |
| |
1908 | 1908 |
| |
1909 | 1909 |
| |
1910 |
| - | |
| 1910 | + | |
1911 | 1911 |
| |
1912 |
| - | |
| 1912 | + | |
1913 | 1913 |
| |
1914 | 1914 |
| |
1915 | 1915 |
| |
| |||
2700 | 2700 |
| |
2701 | 2701 |
| |
2702 | 2702 |
| |
2703 |
| - | |
| 2703 | + | |
2704 | 2704 |
| |
2705 |
| - | |
| 2705 | + | |
2706 | 2706 |
| |
2707 | 2707 |
| |
2708 | 2708 |
| |
| |||
4450 | 4450 |
| |
4451 | 4451 |
| |
4452 | 4452 |
| |
4453 |
| - | |
| 4453 | + | |
4454 | 4454 |
| |
4455 |
| - | |
| 4455 | + | |
4456 | 4456 |
| |
4457 | 4457 |
| |
4458 | 4458 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4264 | 4264 |
| |
4265 | 4265 |
| |
4266 | 4266 |
| |
4267 |
| - | |
| 4267 | + | |
| 4268 | + | |
4268 | 4269 |
| |
4269 | 4270 |
| |
4270 | 4271 |
| |
| |||
4282 | 4283 |
| |
4283 | 4284 |
| |
4284 | 4285 |
| |
| 4286 | + | |
4285 | 4287 |
| |
4286 | 4288 |
| |
4287 | 4289 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
|
Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
| 86 | + | |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
410 | 420 |
| |
411 | 421 |
| |
412 | 422 |
| |
|
0 commit comments
Comments
(0)