[HACKERS] PATCH: Don't downcase filepath/filename while loading libraries - Mailing list pgsql-hackers

From QL Zhuo
Subject [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries
Date
Msg-id CAB-oJtxHVDc3H+Km3CjB9mY1VDzuyaVH_ZYSz7iXcRqCtb93Ew@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries  (Michael Paquier <michael.paquier@gmail.com>)
List 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

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Get stuck when dropping a subscription duringsynchronizing table
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] WIP: Data at rest encryption