[bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder - Mailing list pgsql-hackers

From MauMau
Subject [bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder
Date
Msg-id 8CE1F11715C84DF1B50269005A39E135@maumau
Whole thread Raw
Responses Re: [bug fix or improvement?] Correctly place DLLs for ECPG apps in bin folder
List 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

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: logical changeset generation v6.7
Next
From: Greg Stark
Date:
Subject: Re: Extension Templates S03E11