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
- 0001-Don-t-downcase-filepath-in-load_libraries.patch (application/octet-stream) patch 0001
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
-
Upgrade documentation connected with shared_preload_libraries et al.
- ba63dbd9edc0 10.0 landed
-
Don't downcase entries within shared_preload_libraries et al.
- a69dfe5f40f7 10.0 landed