dynamic loading on NT works!

From: Horak Daniel <horak(at)mmp(dot)plzen-city(dot)cz>
To: "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: dynamic loading on NT works!
Date: 1999-03-09 08:29:36
Message-ID: E821907445D2D2118E0000A024B3BF90520B40@EXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I have played with dynamic loading of modules to the backend and it works.
It needs only to add "DLLIMPORT" to all data structures, that should be
exported.

The main thing is done in the src/include/c.h - it defines DLLIMPORT to
nothing on platforms other then Cygwin and __declspec(...) on Cygwin, and in
src/makefiles/Makefile.win - it defines the symbol BUILDING_DLL only when
the make process is in the src/backend subtree.

I have tested it with trigger regression test - it works, and with some
plpgsql stuff - it doesn't work and it probably needs some other data to be
exported from the backend.

I think the changes are minimal so they can by applied to the development
source tree for 6.5.

Dan

----------------------------------------------
Daniel Horak
network and system administrator
e-mail: horak(at)mmp(dot)plzen-city(dot)cz
privat e-mail: dan(dot)horak(at)email(dot)cz
----------------------------------------------

Attachment Content-Type Size
dll.patch application/octet-stream 4.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Broytmann 1999-03-09 08:59:17 Re: [HACKERS] Not enough memory for complex join
Previous Message Thomas G. Lockhart 1999-03-09 03:58:50 Re: [HACKERS] Niladic functions