forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit54d60bb
committed
Fix a couple of issues in recent patch to print updates to postgresql.conf
settings: avoid calling superuser() in contexts where it's not defined,don't leak the transient copies of GetConfigOption output, and avoid thewhole exercise in postmaster child processes.I found that actually no current caller of GetConfigOption has any use forits internal check of GUC_SUPERUSER_ONLY. But rather than just removethat entirely, it seemed better to add a parameter indicating whether toenforce the check.Per report from Simon and subsequent testing.1 parent66a8417 commit54d60bb
File tree
4 files changed
+26
-15
lines changed- src
- backend/utils/misc
- include/utils
- timezone
4 files changed
+26
-15
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
| 315 | + | |
316 | 316 |
| |
317 |
| - | |
318 |
| - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
319 | 320 |
| |
320 | 321 |
| |
321 | 322 |
| |
322 | 323 |
| |
323 |
| - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
324 | 328 |
| |
325 | 329 |
| |
326 | 330 |
| |
327 |
| - | |
328 |
| - | |
329 | 331 |
| |
| 332 | + | |
| 333 | + | |
| 334 | + | |
330 | 335 |
| |
331 | 336 |
| |
332 | 337 |
| |
|
Lines changed: 9 additions & 3 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 |
| |
| |||
5197 | 5197 |
| |
5198 | 5198 |
| |
5199 | 5199 |
| |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
5200 | 5204 |
| |
5201 | 5205 |
| |
5202 | 5206 |
| |
5203 | 5207 |
| |
5204 |
| - | |
| 5208 | + | |
5205 | 5209 |
| |
5206 | 5210 |
| |
5207 | 5211 |
| |
| |||
5211 | 5215 |
| |
5212 | 5216 |
| |
5213 | 5217 |
| |
5214 |
| - | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
5215 | 5221 |
| |
5216 | 5222 |
| |
5217 | 5223 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
249 | 249 |
| |
250 | 250 |
| |
251 | 251 |
| |
252 |
| - | |
| 252 | + | |
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
1366 | 1366 |
| |
1367 | 1367 |
| |
1368 | 1368 |
| |
1369 |
| - | |
| 1369 | + | |
1370 | 1370 |
| |
1371 | 1371 |
| |
1372 | 1372 |
| |
| |||
1377 | 1377 |
| |
1378 | 1378 |
| |
1379 | 1379 |
| |
1380 |
| - | |
| 1380 | + | |
1381 | 1381 |
| |
1382 | 1382 |
| |
1383 | 1383 |
| |
|
0 commit comments
Comments
(0)