forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4e89eb
committed
Minor GUC code refactoring.
Split out "ConfigOptionIsVisible" to perform the privilegecheck for GUC_SUPERUSER_ONLY GUCs (which these days can alsobe read by pg_read_all_settings role members), and move theshould-we-show-it checks from GetConfigOptionValues to itssole caller.This commit also removes get_explain_guc_options's check ofGUC_NO_SHOW_ALL, which seems to have got cargo-culted in there.While there's no obvious use-case for marking a GUC bothGUC_EXPLAIN and GUC_NO_SHOW_ALL, if it were set up that wayone would expect EXPLAIN to show it --- if that's not whatyou want, then don't set GUC_EXPLAIN.In passing, simplify the loop logic in show_all_settings.Nitin Jadhav, Bharath Rupireddy, Tom LaneDiscussion:https://postgr.es/m/CAMm1aWYgfekpRK-Jz5=pM_bV+Om=ktGq1vxTZ_dr1Z6MV-qokA@mail.gmail.com1 parenta1c4cd6 commite4e89eb
File tree
3 files changed
+40
-46
lines changed- src
- backend/utils/misc
- include/utils
3 files changed
+40
-46
lines changedLines changed: 4 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4187 | 4187 |
| |
4188 | 4188 |
| |
4189 | 4189 |
| |
4190 |
| - | |
4191 |
| - | |
| 4190 | + | |
4192 | 4191 |
| |
4193 | 4192 |
| |
4194 | 4193 |
| |
| |||
4234 | 4233 |
| |
4235 | 4234 |
| |
4236 | 4235 |
| |
4237 |
| - | |
4238 |
| - | |
| 4236 | + | |
4239 | 4237 |
| |
4240 | 4238 |
| |
4241 | 4239 |
| |
| |||
5160 | 5158 |
| |
5161 | 5159 |
| |
5162 | 5160 |
| |
5163 |
| - | |
5164 |
| - | |
5165 |
| - | |
| 5161 | + | |
5166 | 5162 |
| |
5167 | 5163 |
| |
5168 | 5164 |
| |
| |||
5243 | 5239 |
| |
5244 | 5240 |
| |
5245 | 5241 |
| |
5246 |
| - | |
5247 |
| - | |
| 5242 | + | |
5248 | 5243 |
| |
5249 | 5244 |
| |
5250 | 5245 |
| |
|
Lines changed: 33 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
495 |
| - | |
496 |
| - | |
497 |
| - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
498 | 501 |
| |
499 | 502 |
| |
500 | 503 |
| |
| |||
581 | 584 |
| |
582 | 585 |
| |
583 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
584 | 600 |
| |
585 | 601 |
| |
586 | 602 |
| |
587 | 603 |
| |
588 |
| - | |
589 |
| - | |
| 604 | + | |
590 | 605 |
| |
591 | 606 |
| |
592 | 607 |
| |
593 |
| - | |
594 |
| - | |
595 |
| - | |
596 |
| - | |
597 |
| - | |
598 |
| - | |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 | 608 |
| |
604 | 609 |
| |
605 | 610 |
| |
| |||
940 | 945 |
| |
941 | 946 |
| |
942 | 947 |
| |
943 |
| - | |
| 948 | + | |
944 | 949 |
| |
| 950 | + | |
945 | 951 |
| |
946 |
| - | |
947 | 952 |
| |
948 | 953 |
| |
949 | 954 |
| |
950 |
| - | |
951 |
| - | |
952 |
| - | |
953 |
| - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
954 | 958 |
| |
955 |
| - | |
956 |
| - | |
957 |
| - | |
958 |
| - | |
959 |
| - | |
960 |
| - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
961 | 962 |
| |
962 |
| - | |
963 |
| - | |
964 |
| - | |
965 |
| - | |
966 |
| - | |
| 963 | + | |
| 964 | + | |
967 | 965 |
| |
968 | 966 |
| |
969 | 967 |
| |
| |||
973 | 971 |
| |
974 | 972 |
| |
975 | 973 |
| |
976 |
| - | |
977 |
| - | |
978 |
| - | |
979 |
| - | |
980 |
| - | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
981 | 977 |
| |
982 | 978 |
| |
983 | 979 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
| 295 | + | |
| 296 | + | |
| 297 | + | |
295 | 298 |
| |
296 | 299 |
| |
297 | 300 |
| |
|
0 commit comments
Comments
(0)