forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9295d7c
committed
Doc: fix oversimplified example for CREATE POLICY.
As written, this policy constrained only the post-image not the pre-imageof rows, meaning that users could delete other users' rows or takeownership of such rows, contrary to what the docs claimed would happen.We need two separate policies to achieve the documented effect.While at it, try to explain what's happening a bit more fully.Per report from Олег Самойлов. Back-patch to 9.5 where this was added.Thanks to Stephen Frost for off-list discussion.Discussion:https://postgr.es/m/3298321532002010@sas1-2b3c3045b736.qloud-c.yandex.net1 parent98efa76 commit9295d7c
1 file changed
+30
-6
lines changedLines changed: 30 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1623 | 1623 |
| |
1624 | 1624 |
| |
1625 | 1625 |
| |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1626 | 1637 |
| |
1627 | 1638 |
| |
1628 | 1639 |
| |
1629 |
| - | |
| 1640 | + | |
1630 | 1641 |
| |
1631 | 1642 |
| |
1632 | 1643 |
| |
| |||
1635 | 1646 |
| |
1636 | 1647 |
| |
1637 | 1648 |
| |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
1638 | 1653 |
| |
1639 | 1654 |
| |
1640 |
| - | |
1641 |
| - | |
| 1655 | + | |
| 1656 | + | |
1642 | 1657 |
| |
1643 | 1658 |
| |
1644 | 1659 |
| |
1645 | 1660 |
| |
1646 |
| - | |
1647 |
| - | |
1648 |
| - | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
1649 | 1666 |
| |
1650 | 1667 |
| |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1651 | 1675 |
| |
1652 | 1676 |
| |
1653 | 1677 |
| |
|
0 commit comments
Comments
(0)