forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2ca9d54
committed
Apply SELECT policies in INSERT/UPDATE+RETURNING
Similar to7d8db3e, given that INSERT+RETURNING requires SELECT rightson the table, apply the SELECT policies as WCOs to the tuples beinginserted. Apply the same logic to UPDATE+RETURNING.Back-patch to 9.5 where RLS was added.1 parent4158cc3 commit2ca9d54
1 file changed
+29
-3
lines changedLines changed: 29 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
274 | 298 |
| |
275 | 299 |
| |
276 | 300 |
| |
| |||
300 | 324 |
| |
301 | 325 |
| |
302 | 326 |
| |
303 |
| - | |
304 |
| - | |
305 |
| - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
306 | 332 |
| |
307 | 333 |
| |
308 | 334 |
| |
|
0 commit comments
Comments
(0)