forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe550b2
committed
Invent PGC_SU_BACKEND and mark log_connections/log_disconnections that way.
This new GUC context option allows GUC parameters to have the combinedproperties of PGC_BACKEND and PGC_SUSET, ie, they don't change aftersession start and non-superusers can't change them. This is a moreappropriate choice for log_connections and log_disconnections than theirprevious context of PGC_BACKEND, because we don't want non-superusersto be able to affect whether their sessions get logged.Note: the behavior for log_connections is still a bit odd, in that whena superuser attempts to set it from PGOPTIONS, the setting takes effectbut it's too late to enable or suppress connection startup logging.It's debatable whether that's worth fixing, and in any case there isa reasonable argument for PGC_SU_BACKEND to exist.In passing, re-pgindent the files touched by this commit.Fujii Masao, reviewed by Joe Conway and Amit Kapila1 parentc2a0143 commitfe550b2
File tree
5 files changed
+65
-43
lines changed- doc/src/sgml
- src
- backend
- tcop
- utils
- init
- misc
- include/utils
5 files changed
+65
-43
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4345 | 4345 |
| |
4346 | 4346 |
| |
4347 | 4347 |
| |
4348 |
| - | |
4349 |
| - | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
4350 | 4351 |
| |
4351 | 4352 |
| |
4352 | 4353 |
| |
| |||
4368 | 4369 |
| |
4369 | 4370 |
| |
4370 | 4371 |
| |
4371 |
| - | |
4372 |
| - | |
4373 |
| - | |
4374 |
| - | |
4375 |
| - | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
4376 | 4378 |
| |
4377 | 4379 |
| |
4378 | 4380 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3258 | 3258 |
| |
3259 | 3259 |
| |
3260 | 3260 |
| |
3261 |
| - | |
| 3261 | + | |
3262 | 3262 |
| |
3263 | 3263 |
| |
3264 | 3264 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
425 | 425 |
| |
426 | 426 |
| |
427 | 427 |
| |
428 |
| - | |
| 428 | + | |
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| |||
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
985 |
| - | |
| 985 | + | |
986 | 986 |
| |
987 | 987 |
| |
988 | 988 |
| |
|
Lines changed: 41 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
496 |
| - | |
| 496 | + | |
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
| |||
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
| 512 | + | |
512 | 513 |
| |
513 | 514 |
| |
514 | 515 |
| |
| |||
907 | 908 |
| |
908 | 909 |
| |
909 | 910 |
| |
910 |
| - | |
| 911 | + | |
911 | 912 |
| |
912 | 913 |
| |
913 | 914 |
| |
| |||
916 | 917 |
| |
917 | 918 |
| |
918 | 919 |
| |
919 |
| - | |
| 920 | + | |
920 | 921 |
| |
921 | 922 |
| |
922 | 923 |
| |
| |||
4389 | 4390 |
| |
4390 | 4391 |
| |
4391 | 4392 |
| |
4392 |
| - | |
4393 |
| - | |
4394 |
| - | |
4395 |
| - | |
| 4393 | + | |
| 4394 | + | |
| 4395 | + | |
| 4396 | + | |
4396 | 4397 |
| |
4397 | 4398 |
| |
4398 | 4399 |
| |
| |||
5694 | 5695 |
| |
5695 | 5696 |
| |
5696 | 5697 |
| |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
| 5704 | + | |
| 5705 | + | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
5697 | 5709 |
| |
5698 | 5710 |
| |
5699 | 5711 |
| |
5700 | 5712 |
| |
5701 |
| - | |
5702 |
| - | |
5703 |
| - | |
5704 |
| - | |
5705 |
| - | |
5706 |
| - | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
5707 | 5719 |
| |
5708 | 5720 |
| |
5709 | 5721 |
| |
| |||
5722 | 5734 |
| |
5723 | 5735 |
| |
5724 | 5736 |
| |
5725 |
| - | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
5726 | 5740 |
| |
5727 | 5741 |
| |
5728 | 5742 |
| |
| |||
6771 | 6785 |
| |
6772 | 6786 |
| |
6773 | 6787 |
| |
6774 |
| - | |
| 6788 | + | |
| 6789 | + | |
6775 | 6790 |
| |
6776 | 6791 |
| |
6777 | 6792 |
| |
| |||
6780 | 6795 |
| |
6781 | 6796 |
| |
6782 | 6797 |
| |
6783 |
| - | |
6784 |
| - | |
6785 |
| - | |
6786 |
| - | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
| 6801 | + | |
6787 | 6802 |
| |
6788 | 6803 |
| |
6789 | 6804 |
| |
6790 | 6805 |
| |
6791 | 6806 |
| |
6792 |
| - | |
| 6807 | + | |
| 6808 | + | |
6793 | 6809 |
| |
6794 | 6810 |
| |
6795 | 6811 |
| |
| |||
6817 | 6833 |
| |
6818 | 6834 |
| |
6819 | 6835 |
| |
6820 |
| - | |
| 6836 | + | |
6821 | 6837 |
| |
6822 | 6838 |
| |
6823 | 6839 |
| |
| |||
6835 | 6851 |
| |
6836 | 6852 |
| |
6837 | 6853 |
| |
6838 |
| - | |
6839 |
| - | |
| 6854 | + | |
| 6855 | + | |
6840 | 6856 |
| |
6841 | 6857 |
| |
6842 | 6858 |
| |
| |||
8388 | 8404 |
| |
8389 | 8405 |
| |
8390 | 8406 |
| |
8391 |
| - | |
8392 |
| - | |
| 8407 | + | |
| 8408 | + | |
8393 | 8409 |
| |
8394 | 8410 |
| |
8395 | 8411 |
| |
|
Lines changed: 12 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 |
| |
46 | 48 |
| |
47 |
| - | |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| |||
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| 58 | + | |
56 | 59 |
| |
57 | 60 |
| |
58 | 61 |
| |
| |||
195 | 198 |
| |
196 | 199 |
| |
197 | 200 |
| |
198 |
| - | |
| 201 | + | |
| 202 | + | |
199 | 203 |
| |
200 | 204 |
| |
201 | 205 |
| |
|
0 commit comments
Comments
(0)