forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2ba9e2b
committed
Ensure locks are acquired on RLS-added relations
During fireRIRrules(), get_row_security_policies can add tosecurityQuals and withCheckOptions. Make sure to lock any relationsadded at that point and before firing RIR rules on those expressions.Back-patch to 9.5 where RLS was added.1 parentc0f0d80 commit2ba9e2b
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1794 | 1794 |
| |
1795 | 1795 |
| |
1796 | 1796 |
| |
| 1797 | + | |
| 1798 | + | |
1797 | 1799 |
| |
1798 | 1800 |
| |
1799 | 1801 |
| |
| |||
1806 | 1808 |
| |
1807 | 1809 |
| |
1808 | 1810 |
| |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1809 | 1828 |
| |
1810 | 1829 |
| |
1811 | 1830 |
| |
|
0 commit comments
Comments
(0)