Commit 537bd17
committed
Remove the row_security=force GUC value.
Every query of a single ENABLE ROW SECURITY table has two meanings, with
the row_security GUC selecting between them. With row_security=force
available, every function author would have been advised to either set
the GUC locally or test both meanings. Non-compliance would have
threatened reliability and, for SECURITY DEFINER functions, security.
Authors already face an obligation to account for search_path, and we
should not mimic that example. With this change, only BYPASSRLS roles
need exercise the aforementioned care. Back-patch to 9.5, where the
row_security GUC was introduced.
Since this narrows the domain of pg_db_role_setting.setconfig and
pg_proc.proconfig, one might bump catversion. A row_security=force
setting in one of those columns will elicit a clear message, so don't.1 parent 8346218 commit 537bd17
File tree
8 files changed
+34
-241
lines changed- doc/src/sgml
- src
- backend/utils/misc
- include/utils
- test/regress
- expected
- sql
8 files changed
+34
-241
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5549 | 5549 | | |
5550 | 5550 | | |
5551 | 5551 | | |
5552 | | - | |
5553 | | - | |
5554 | | - | |
5555 | | - | |
| 5552 | + | |
| 5553 | + | |
5556 | 5554 | | |
5557 | 5555 | | |
5558 | 5556 | | |
| |||
5565 | 5563 | | |
5566 | 5564 | | |
5567 | 5565 | | |
5568 | | - | |
5569 | | - | |
5570 | | - | |
5571 | | - | |
5572 | | - | |
5573 | | - | |
5574 | | - | |
5575 | 5566 | | |
5576 | 5567 | | |
5577 | 5568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1585 | 1585 | | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
1598 | 1595 | | |
1599 | 1596 | | |
1600 | 1597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | 382 | | |
400 | 383 | | |
401 | 384 | | |
| |||
421 | 404 | | |
422 | 405 | | |
423 | 406 | | |
| 407 | + | |
424 | 408 | | |
425 | 409 | | |
426 | 410 | | |
| |||
452 | 436 | | |
453 | 437 | | |
454 | 438 | | |
455 | | - | |
456 | | - | |
457 | 439 | | |
458 | 440 | | |
459 | 441 | | |
| |||
1373 | 1355 | | |
1374 | 1356 | | |
1375 | 1357 | | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1376 | 1367 | | |
1377 | 1368 | | |
1378 | 1369 | | |
| |||
3630 | 3621 | | |
3631 | 3622 | | |
3632 | 3623 | | |
3633 | | - | |
3634 | | - | |
3635 | | - | |
3636 | | - | |
3637 | | - | |
3638 | | - | |
3639 | | - | |
3640 | | - | |
3641 | | - | |
3642 | | - | |
3643 | 3624 | | |
3644 | 3625 | | |
3645 | 3626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
101 | 93 | | |
102 | | - | |
103 | | - | |
| 94 | + | |
104 | 95 | | |
105 | 96 | | |
106 | 97 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
114 | 101 | | |
115 | | - | |
| 102 | + | |
116 | 103 | | |
117 | 104 | | |
118 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 17 | + | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
30 | 22 | | |
31 | 23 | | |
32 | 24 | | |
33 | | - | |
| 25 | + | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
| |||
0 commit comments