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

From: QL Zhuo <zhuo(dot)dev(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PATCH: Don't downcase filepath/filename while loading libraries
Date: 2017-06-16 02:04:12
Message-ID: CAB-oJtxHVDc3H+Km3CjB9mY1VDzuyaVH_ZYSz7iXcRqCtb93Ew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-Don-t-downcase-filepath-in-load_libraries.patch application/octet-stream 849 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2017-06-16 02:17:23 Re: WIP: Data at rest encryption
Previous Message Peter Eisentraut 2017-06-16 01:49:58 Re: Get stuck when dropping a subscription during synchronizing table