[bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder

Поиск
Список
Период
Сортировка
От MauMau
Тема [bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder
Дата
Msg-id 8CE1F11715C84DF1B50269005A39E135@maumau
обсуждение исходный текст
Ответы Re: [bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder
Список pgsql-hackers
Hello,

The attached patch implements the below proposal, and moves libecpg.dll,
libecpg_compat.dll, and libpgtypes.dll from lib to bin folder on Windows,
where they should be.

http://www.postgresql.org/message-id/10470B394DB8486F93AC60107CC44C8B@maumau

As Andrew-san said, I don't expect it to be back-ported.

In addition, I'll remove libpq.dll from lib folder unless somebody objects.
Currently, libpq.dll is placed in both bin and lib.  I guess libpq.dll was
left in lib because it was considered necessary for ECPG DLLs.

Would removing libpq.dll from lib cause any problem?  No.  The following
modules in lib need libpq.dll when they are loaded by postgres.exe by
LoadLibrary().  But the necessary libpq.dll is loaded from bin folder.
According to the DLL search order rule, DLLs are loaded from the same folder
as the loading program, which is postgres.exe in our case.

dblink.dll
libpqwalreceiver.dll
postgres_fdw.dll

Regards
MauMau

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: logical changeset generation v6.7
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Extension Templates S03E11