forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c34555
committed
Add test for session_preload_libraries and parameter permissions checks.
We weren't exercising the session_preload_libraries option in anymeaningful way. auto_explain is a good testbed for doing so, sinceit's one of the primary use-cases for session_preload_libraries.Hence, adjust its TAP test to load the library viasession_preload_libraries not shared_preload_libraries. While at it,feed test-specific settings to the backend via PGOPTIONS rather thantediously rewriting postgresql.conf.Also, since auto_explain has some PGC_SUSET parameters, we can use itto provide a test case for the permissions-checking bug just fixedby commitb35617d.Back-patch to v15 so that we have coverage for the permissions issuein that branch too. To do that, I back-patched the refactoringrecently done by commit550bc0a.Dagfinn Ilmari Mannsåker and Tom LaneDiscussion:https://postgr.es/m/CABwTF4VEpwTHhRQ+q5MiC5ucngN-whN-PdcKeufX7eLSoAfbZA@mail.gmail.com1 parenta45388d commit7c34555
1 file changed
+48
-26
lines changedLines changed: 48 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
| 12 | + | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 19 | + | |
| 20 | + | |
27 | 21 |
| |
28 | 22 |
| |
29 | 23 |
| |
30 | 24 |
| |
31 | 25 |
| |
32 | 26 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 27 | + | |
45 | 28 |
| |
46 | 29 |
| |
47 | 30 |
| |
48 | 31 |
| |
49 | 32 |
| |
50 |
| - | |
| 33 | + | |
51 | 34 |
| |
52 | 35 |
| |
53 | 36 |
| |
| |||
126 | 109 |
| |
127 | 110 |
| |
128 | 111 |
| |
129 |
| - | |
| 112 | + | |
130 | 113 |
| |
131 | 114 |
| |
132 | 115 |
| |
133 | 116 |
| |
134 |
| - | |
| 117 | + | |
135 | 118 |
| |
136 | 119 |
| |
137 | 120 |
| |
| |||
141 | 124 |
| |
142 | 125 |
| |
143 | 126 |
| |
144 |
| - | |
| 127 | + | |
145 | 128 |
| |
146 | 129 |
| |
147 | 130 |
| |
| |||
160 | 143 |
| |
161 | 144 |
| |
162 | 145 |
| |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
163 | 185 |
|
0 commit comments
Comments
(0)