- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite6f1e56
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 parentb0afdca commite6f1e56
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 | |
---|---|---|---|
| |||
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
| 307 | + | |
307 | 308 |
| |
308 | 309 |
| |
309 | 310 |
| |
| |||
1615 | 1616 |
| |
1616 | 1617 |
| |
1617 | 1618 |
| |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1618 | 1625 |
| |
1619 | 1626 |
| |
1620 | 1627 |
| |
| |||
1701 | 1708 |
| |
1702 | 1709 |
| |
1703 | 1710 |
| |
| 1711 | + | |
1704 | 1712 |
| |
1705 | 1713 |
| |
1706 | 1714 |
| |
| |||
1951 | 1959 |
| |
1952 | 1960 |
| |
1953 | 1961 |
| |
1954 |
| - | |
1955 | 1962 |
| |
1956 | 1963 |
| |
1957 | 1964 |
| |
| |||
1965 | 1972 |
| |
1966 | 1973 |
| |
1967 | 1974 |
| |
1968 |
| - | |
1969 |
| - | |
1970 |
| - | |
1971 |
| - | |
1972 |
| - | |
1973 |
| - | |
1974 | 1975 |
| |
1975 | 1976 |
| |
1976 | 1977 |
| |
| |||
1980 | 1981 |
| |
1981 | 1982 |
| |
1982 | 1983 |
| |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
1983 | 2000 |
| |
1984 | 2001 |
| |
1985 | 2002 |
| |
| |||
15292 | 15309 |
| |
15293 | 15310 |
| |
15294 | 15311 |
| |
| 15312 | + | |
15295 | 15313 |
| |
15296 | 15314 |
| |
15297 | 15315 |
| |
|
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)