- Notifications
You must be signed in to change notification settings - Fork5
Commitdc3eb56
committed
Improve updatability checking for views and foreign tables.
Extend the FDW API (which we already changed for 9.3) so that an FDW canreport whether specific foreign tables are insertable/updatable/deletable.The default assumption continues to be that they're updatable if therelevant executor callback function is supplied by the FDW, but finergranularity is now possible. As a test case, add an "updatable" option tocontrib/postgres_fdw.This patch also fixes the information_schema views, which previously didnot think that foreign tables were ever updatable, and fixesview_is_auto_updatable() so that a view on a foreign table can beauto-updatable.initdb forced due to changes in information_schema views and the functionsthey rely on. This is a bit unfortunate to do post-beta1, but if we don'tchange this now then we'll have another API break for FDWs when we dochange it.Dean Rasheed, somewhat editorialized on by Tom Lane1 parent78ed8e0 commitdc3eb56
File tree
15 files changed
+272
-54
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
- src
- backend
- catalog
- executor
- rewrite
- utils/adt
- include
- catalog
- foreign
- rewrite
- utils
15 files changed
+272
-54
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| 82 | + | |
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
109 |
| - | |
| 109 | + | |
| 110 | + | |
110 | 111 |
| |
111 |
| - | |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| |||
151 | 152 |
| |
152 | 153 |
| |
153 | 154 |
| |
| 155 | + | |
| 156 | + | |
| 157 | + | |
154 | 158 |
| |
155 | 159 |
| |
156 | 160 |
| |
|
Lines changed: 47 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
| 280 | + | |
280 | 281 |
| |
281 | 282 |
| |
282 | 283 |
| |
| |||
355 | 356 |
| |
356 | 357 |
| |
357 | 358 |
| |
| 359 | + | |
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
| |||
1596 | 1598 |
| |
1597 | 1599 |
| |
1598 | 1600 |
| |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1599 | 1646 |
| |
1600 | 1647 |
| |
1601 | 1648 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
568 | 595 |
| |
569 | 596 |
| |
570 | 597 |
| |
|
Lines changed: 37 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
254 | 254 |
| |
255 | 255 |
| |
256 | 256 |
| |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
257 | 294 |
| |
258 | 295 |
| |
259 | 296 |
| |
|
Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
731 | 731 |
| |
732 | 732 |
| |
733 | 733 |
| |
734 |
| - | |
| 734 | + | |
| 735 | + | |
735 | 736 |
| |
736 | 737 |
| |
737 | 738 |
| |
| |||
1895 | 1896 |
| |
1896 | 1897 |
| |
1897 | 1898 |
| |
1898 |
| - | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1899 | 1902 |
| |
1900 | 1903 |
| |
1901 | 1904 |
| |
| |||
2494 | 2497 |
| |
2495 | 2498 |
| |
2496 | 2499 |
| |
2497 |
| - | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
2498 | 2503 |
| |
2499 | 2504 |
| |
2500 | 2505 |
| |
2501 |
| - | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
2502 | 2509 |
| |
2503 | 2510 |
| |
2504 | 2511 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1015 | 1015 |
| |
1016 | 1016 |
| |
1017 | 1017 |
| |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1018 | 1024 |
| |
1019 | 1025 |
| |
1020 | 1026 |
| |
1021 | 1027 |
| |
1022 | 1028 |
| |
1023 | 1029 |
| |
1024 | 1030 |
| |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1025 | 1037 |
| |
1026 | 1038 |
| |
1027 | 1039 |
| |
1028 | 1040 |
| |
1029 | 1041 |
| |
1030 | 1042 |
| |
1031 | 1043 |
| |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1032 | 1050 |
| |
1033 | 1051 |
| |
1034 | 1052 |
| |
|
0 commit comments
Comments
(0)