forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite414ba9
committed
Fix Var handling for security barrier views
In some cases, not all Vars were being correctly marked as having beenmodified for updatable security barrier views, which resulted in invalidplans (eg: when security barrier views were created over top ofinheiritance structures).In passing, be sure to update both varattno and varonattno, as _equalVarwon't consider the Vars identical otherwise. This isn't known to causeany issues with updatable security barrier views, but was noticed asmissing while working on RLS and makes sense to get fixed.Back-patch to 9.4 where updatable security barrier views wereintroduced.1 parent8e484bc commite414ba9
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
398 | 398 |
| |
399 | 399 |
| |
400 | 400 |
| |
401 |
| - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 |
| |
403 | 405 |
| |
404 | 406 |
| |
| |||
444 | 446 |
| |
445 | 447 |
| |
446 | 448 |
| |
447 |
| - | |
| 449 | + | |
448 | 450 |
| |
449 | 451 |
| |
450 | 452 |
| |
|
0 commit comments
Comments
(0)