| От | Horak Daniel |
|---|---|
| Тема | dynamic loading on NT works! |
| Дата | |
| Msg-id | E821907445D2D2118E0000A024B3BF90520B40@EXCHANGE обсуждение исходный текст |
| Ответы |
Re: [HACKERS] dynamic loading on NT works!
|
| Список | 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@mmp.plzen-city.cz
privat e-mail: dan.horak@email.cz
----------------------------------------------
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера