Commit a69dfe5
committed
Don't downcase entries within shared_preload_libraries et al.
load_libraries(), which processes the various xxx_preload_libraries GUCs,
was parsing them using SplitIdentifierString() which isn't really
appropriate for values that could be path names: it downcases unquoted
text, and it doesn't allow embedded whitespace unless quoted.
Use SplitDirectoriesString() instead. That also allows us to simplify
load_libraries() a bit, since canonicalize_path() is now done for it.
While this definitely seems like a bug fix, it has the potential to
break configuration settings that accidentally worked before because
of the downcasing behavior. Also, there's an easy workaround for the
bug, namely to double-quote troublesome text. Hence, no back-patch.
QL Zhuo, tweaked a bit by me
Discussion: https://postgr.es/m/CAB-oJtxHVDc3H+Km3CjB9mY1VDzuyaVH_ZYSz7iXcRqCtb93Ew@mail.gmail.com1 parent a2141c4 commit a69dfe5
2 files changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | | - | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
3351 | 3353 | | |
3352 | 3354 | | |
3353 | 3355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
1439 | | - | |
| 1438 | + | |
| 1439 | + | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
1442 | 1443 | | |
1443 | | - | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
| |||
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | | - | |
1454 | | - | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
1455 | 1456 | | |
1456 | | - | |
1457 | | - | |
1458 | 1457 | | |
1459 | 1458 | | |
1460 | 1459 | | |
1461 | | - | |
1462 | | - | |
1463 | 1460 | | |
1464 | | - | |
1465 | 1461 | | |
1466 | 1462 | | |
1467 | 1463 | | |
1468 | 1464 | | |
1469 | 1465 | | |
1470 | | - | |
| 1466 | + | |
| 1467 | + | |
1471 | 1468 | | |
1472 | 1469 | | |
| 1470 | + | |
1473 | 1471 | | |
1474 | | - | |
1475 | 1472 | | |
1476 | 1473 | | |
1477 | 1474 | | |
| |||
0 commit comments