Re: Query on support for trigger functions defined in a Shared library in Windows

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Query on support for trigger functions defined in a Shared library in Windows
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7F64@algol.sollentuna.se
обсуждение исходный текст
Ответ на Query on support for trigger functions defined in a Shared library in Windows  (Mehul Doshi-A20614 <mehul@motorola.com>)
Список pgsql-hackers-win32
> On Windows for the same I get: (Includes extra \ to account
> for Windows)
>
> test=# CREATE OR REPLACE FUNCTION trigf_test_pid_insert()
> RETURNS trigger
> test-#   AS 'C:\\Program Files\\Test\\lib\\testtrigfuncs.dll'
> test-#   LANGUAGE C ;
> ERROR:  could not load library "C:\Program
> Files\Test\lib\testtrigfuncs.dll": The specified module could
> not be found.
>
> I went and modified the dynamic_library_path to
> dynamic_library_path = 'C:\Program Files\Test\lib;$libdir'
>
> I also added C:\Program Files\Test\lib to the PATH variable.
> I restarted postgres service and then retried the below.

Are you sure you added this to the SYSTEM path and not the USER path?
Because if it's the second, it won't affect the pg service. I'd also try
a reboot after changing the one in SYSTEM - I've seen cases where it
didn't "take" even if the service was restarted.

//Magnus

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

Предыдущее
От: "Mehul Doshi-A20614"
Дата:
Сообщение: Re: Query on support for trigger functions defined in a Shared library in Windows
Следующее
От: Reini Urban
Дата:
Сообщение: Re: Query on support for trigger functions defined in a Shared library in Windows