Re: Query on support for trigger functions defined in a Shared library in Windows
"Magnus Hagander" <[email protected]> Fri, 27 Jan 2006 09:31:59 +0100
| Newsgroups | gmane.comp.db.postgresql.devel.win32 |
|---|---|
| Message-ID | <[email protected]> |
> On Windows for the same I get: (Includes extra \ to account=20 > for Windows) >=20 > test=3D# CREATE OR REPLACE FUNCTION trigf_test_pid_insert()=20 > 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=20 > not be found. >=20 > I went and modified the dynamic_library_path to=20 > dynamic_library_path =3D 'C:\Program Files\Test\lib;$libdir' >=20 > I also added C:\Program Files\Test\lib to the PATH variable.=20 > 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 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings