forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb7aac36
committed
Handle append_rel_list in expand_security_qual
During expand_security_quals, we take the security barrier quals on anRTE and create a subquery which evaluates the quals. During this, wehave to replace any variables in the outer query which refer to theoriginal RTE with references to the columns from the subquery.We need to also perform that replacement for any Vars in theappend_rel_list.Only backpatching to 9.5 as we only go through this process in 9.4 forauto-updatable security barrier views, which UNION ALL queries aren't.Discovered by Haribabu KommiPatch by Dean Rasheed1 parent94f5246 commitb7aac36
File tree
3 files changed
+34
-1
lines changed- src
- backend/optimizer/prep
- test/regress
- expected
- sql
3 files changed
+34
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 |
| |
60 | 66 |
| |
61 | 67 |
| |
| |||
263 | 269 |
| |
264 | 270 |
| |
265 | 271 |
| |
266 |
| - | |
| 272 | + | |
| 273 | + | |
267 | 274 |
| |
268 | 275 |
| |
269 | 276 |
| |
| |||
274 | 281 |
| |
275 | 282 |
| |
276 | 283 |
| |
| 284 | + | |
| 285 | + | |
277 | 286 |
| |
278 | 287 |
| |
279 | 288 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
640 | 640 |
| |
641 | 641 |
| |
642 | 642 |
| |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
643 | 663 |
| |
644 | 664 |
| |
645 | 665 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 |
| |
259 | 263 |
| |
260 | 264 |
| |
|
0 commit comments
Comments
(0)