forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88743d5
committed
In REFRESH MATERIALIZED VIEW, set user ID before running user code.
It intended to, but did not, achieve this. Adopt the new standard ofsetting user ID just after locking the relation. Back-patch to v10 (allsupported versions).Reviewed by Simon Riggs. Reported by Alvaro Herrera.Security:CVE-2022-15521 parent35edcc0 commit88743d5
File tree
3 files changed
+44
-19
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+44
-19
lines changedLines changed: 11 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
170 | 181 |
| |
171 | 182 |
| |
172 | 183 |
| |
| |||
269 | 280 |
| |
270 | 281 |
| |
271 | 282 |
| |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 |
| - | |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 | 283 |
| |
286 | 284 |
| |
287 | 285 |
| |
| |||
304 | 302 |
| |
305 | 303 |
| |
306 | 304 |
| |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 | 305 |
| |
314 | 306 |
| |
315 | 307 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1511 | 1511 |
| |
1512 | 1512 |
| |
1513 | 1513 |
| |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
1514 | 1530 |
| |
1515 | 1531 |
| |
1516 | 1532 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
945 | 945 |
| |
946 | 946 |
| |
947 | 947 |
| |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
948 | 965 |
| |
949 | 966 |
| |
950 | 967 |
| |
|
0 commit comments
Comments
(0)