Re: [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries
Дата
Msg-id CAB7nPqTSfvdE6v7d737H_eyxC6X5z6eZ3oQC65SyF+TDzy4Wxg@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries  (QL Zhuo <zhuo.dev@gmail.com>)
Ответы Re: [HACKERS] PATCH: Don't downcase filepath/filename while loading libraries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Jun 16, 2017 at 11:04 AM, QL Zhuo <zhuo.dev@gmail.com> wrote:
> 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.

That's a good catch. All the other callers of SplitIdentifierString()
don't handle a list of directories. This requires a back-patch.
-- 
Michael



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] Decimal64 and Decimal128
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Something is rotten in publication drop