PATCH: Don't downcase filepath/filename while loading libraries

QL Zhuo <zhuo.dev@gmail.com>

From: QL Zhuo <zhuo.dev@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2017-06-16T02:04:12Z
Lists: pgsql-hackers

Attachments

I just put this line in my postgresql.conf:

```
shared_preload_libraries = '/Path/Contains/UpCaseWords/an_ext.so'
```

Then the server couldn't start. It tried to load the file
"/path/contains/upcasewords/an_ext.so" and failed.

After few digging, I found there's a wrong use of `SplitIdentifierString`
in function `load_libraries` in /src/backend/utils/init/miscinit.c, and the
attached patch fixes it.


--
This email address (zhuo.dev<at>gmail.com) is only for development affairs,
e.g. mail list, please mail to zhuo<at>hexoasis.com or zhuoql<at>zoho.com
for other purpose.

ZHUO QL (KDr2), http://kdr2.com

Commits

  1. Upgrade documentation connected with shared_preload_libraries et al.

  2. Don't downcase entries within shared_preload_libraries et al.