Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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


  • From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
  • To: "Mehul Doshi-A20614" <mehul(at)motorola(dot)com>, <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: Query on support for trigger functions defined in a Shared library in Windows
  • Date: Fri, 27 Jan 2006 09:31:59 +0100
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCE6C7F64(at)algol(dot)sollentuna(dot)se>

> 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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group