forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde01777
committed
Make inherited TRUNCATE perform access permission checks on parent table only.
Previously, TRUNCATE command through a parent table checked thepermissions on not only the parent table but also the children tablesinherited from it. This was a bug and inherited queries should performaccess permission checks on the parent table only. This commit fixesthat bug.Back-patch to all supported branches.Author: Amit LangoteReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com1 parent3228512 commitde01777
File tree
3 files changed
+60
-7
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+60
-7
lines changedLines changed: 25 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
| 305 | + | |
305 | 306 |
| |
306 | 307 |
| |
307 | 308 |
| |
| |||
1590 | 1591 |
| |
1591 | 1592 |
| |
1592 | 1593 |
| |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1593 | 1600 |
| |
1594 | 1601 |
| |
1595 | 1602 |
| |
| |||
1676 | 1683 |
| |
1677 | 1684 |
| |
1678 | 1685 |
| |
| 1686 | + | |
1679 | 1687 |
| |
1680 | 1688 |
| |
1681 | 1689 |
| |
| |||
1926 | 1934 |
| |
1927 | 1935 |
| |
1928 | 1936 |
| |
1929 |
| - | |
1930 | 1937 |
| |
1931 | 1938 |
| |
1932 | 1939 |
| |
| |||
1940 | 1947 |
| |
1941 | 1948 |
| |
1942 | 1949 |
| |
1943 |
| - | |
1944 |
| - | |
1945 |
| - | |
1946 |
| - | |
1947 |
| - | |
1948 |
| - | |
1949 | 1950 |
| |
1950 | 1951 |
| |
1951 | 1952 |
| |
1952 | 1953 |
| |
1953 | 1954 |
| |
1954 | 1955 |
| |
1955 | 1956 |
| |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
1956 | 1973 |
| |
1957 | 1974 |
| |
1958 | 1975 |
| |
| |||
14886 | 14903 |
| |
14887 | 14904 |
| |
14888 | 14905 |
| |
| 14906 | + | |
14889 | 14907 |
| |
14890 | 14908 |
| |
14891 | 14909 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
695 | 695 |
| |
696 | 696 |
| |
697 | 697 |
| |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
698 | 719 |
| |
699 | 720 |
| |
700 | 721 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
449 | 463 |
| |
450 | 464 |
| |
451 | 465 |
| |
|
0 commit comments
Comments
(0)