forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit789ddcb
committed
Add tgconstrrelid to stored Trigger structures, make RI trigger functions
depend on this rather than the trigger argument strings to locate theother relation to test. This makes RI triggers function properly inthe presence of schemas and temp tables. Along the way, fix bogus lackof locking in RI triggers, handle quoting of names fully correctly,compute required sizes of query buffers with some semblance of accuracy.1 parent6a25cd6 commit789ddcb
File tree
6 files changed
+370
-254
lines changed- doc/src/sgml
- src
- backend
- commands
- utils/adt
- include
- commands
- utils
6 files changed
+370
-254
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
374 | 374 |
| |
375 | 375 |
| |
376 | 376 |
| |
| 377 | + | |
377 | 378 |
| |
378 | 379 |
| |
379 | 380 |
| |
|
Lines changed: 12 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1639 | 1639 |
| |
1640 | 1640 |
| |
1641 | 1641 |
| |
1642 |
| - | |
1643 |
| - | |
1644 |
| - | |
1645 | 1642 |
| |
1646 | 1643 |
| |
1647 | 1644 |
| |
| |||
1651 | 1648 |
| |
1652 | 1649 |
| |
1653 | 1650 |
| |
1654 |
| - | |
| 1651 | + | |
1655 | 1652 |
| |
1656 | 1653 |
| |
1657 | 1654 |
| |
1658 | 1655 |
| |
1659 |
| - | |
1660 |
| - | |
| 1656 | + | |
| 1657 | + | |
1661 | 1658 |
| |
1662 | 1659 |
| |
1663 | 1660 |
| |
1664 | 1661 |
| |
1665 |
| - | |
1666 |
| - | |
1667 | 1662 |
| |
1668 | 1663 |
| |
1669 |
| - | |
| 1664 | + | |
1670 | 1665 |
| |
| 1666 | + | |
1671 | 1667 |
| |
1672 | 1668 |
| |
1673 | 1669 |
| |
1674 | 1670 |
| |
1675 | 1671 |
| |
1676 |
| - | |
1677 |
| - | |
1678 |
| - | |
1679 |
| - | |
1680 |
| - | |
1681 |
| - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1682 | 1675 |
| |
1683 | 1676 |
| |
1684 | 1677 |
| |
| |||
1732 | 1725 |
| |
1733 | 1726 |
| |
1734 | 1727 |
| |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1735 | 1731 |
| |
1736 | 1732 |
| |
1737 | 1733 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
| 547 | + | |
547 | 548 |
| |
548 | 549 |
| |
549 | 550 |
| |
| |||
763 | 764 |
| |
764 | 765 |
| |
765 | 766 |
| |
| 767 | + | |
| 768 | + | |
766 | 769 |
| |
767 | 770 |
| |
768 | 771 |
| |
|
0 commit comments
Comments
(0)