forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitabc3120
committed
Add server support for "plugin" libraries that can be used for add-on tasks
such as debugging and performance measurement. This consists of two features:a table of "rendezvous variables" that allows separately-loaded sharedlibraries to communicate, and a new GUC setting "local_preload_libraries"that allows libraries to be loaded into specific sessions without explicitcooperation from the client application. To make local_preload_librariesas flexible as possible, we do not restrict its use to superusers; instead,it is restricted to load only libraries stored in $libdir/plugins/. Theexisting LOAD command has also been modified to allow non-superusers toLOAD libraries stored in this directory.This patch also renames the existing GUC variable preload_libraries toshared_preload_libraries (after a suggestion by Simon Riggs) and does somecode refactoring in dfmgr.c to improve clarity.Korry Douglas, with a little help from Tom Lane.1 parent66541c5 commitabc3120
File tree
11 files changed
+353
-113
lines changed- doc/src/sgml
- ref
- src
- backend
- postmaster
- tcop
- utils
- fmgr
- init
- misc
- include
11 files changed
+353
-113
lines changedLines changed: 59 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
949 | 949 |
| |
950 | 950 |
| |
951 | 951 |
| |
952 |
| - | |
953 |
| - | |
| 952 | + | |
| 953 | + | |
954 | 954 |
| |
955 |
| - | |
| 955 | + | |
956 | 956 |
| |
957 | 957 |
| |
958 | 958 |
| |
| |||
963 | 963 |
| |
964 | 964 |
| |
965 | 965 |
| |
| 966 | + | |
966 | 967 |
| |
967 | 968 |
| |
968 | 969 |
| |
| |||
3642 | 3643 |
| |
3643 | 3644 |
| |
3644 | 3645 |
| |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
3645 | 3700 |
| |
3646 | 3701 |
| |
3647 | 3702 |
| |
|
Lines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
47 | 60 |
| |
48 | 61 |
| |
49 | 62 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
712 |
| - | |
| 712 | + | |
713 | 713 |
| |
714 | 714 |
| |
715 | 715 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3000 | 3000 |
| |
3001 | 3001 |
| |
3002 | 3002 |
| |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
3003 | 3009 |
| |
3004 | 3010 |
| |
3005 | 3011 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
886 | 886 |
| |
887 | 887 |
| |
888 | 888 |
| |
889 |
| - | |
890 |
| - | |
891 |
| - | |
892 |
| - | |
893 | 889 |
| |
894 |
| - | |
| 890 | + | |
| 891 | + | |
895 | 892 |
| |
896 | 893 |
| |
897 | 894 |
| |
|
0 commit comments
Comments
(0)