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: 2005-07-25 15:14:57
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C77C4@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

> Hi,
>
> I would like to know whether the native Windows version of
> PostgreSQL (version 8.0.0) supports trigger functions defined
> in shared libraries. Specifically, I am trying to port a
> Linux shared object used as the snippet below shows to Windows:
>
> CREATE FUNCTION foo() returns trigger AS
> '/path/to/sharedlib.so' LANGUAGE C;
>
> Are DLLs supported in a similar context in Windows?

Yes, they should be.

> What do I need to do to port such code?

Most functions should work without modifications.

> My initial attempts resulted in a failure. I created the DLL
> and attempted to run the SQL CREATE FUNCTION which specified
> the Windows path to the DLL. However the server died without
> any clueful messages.

How exactly did you build your DLL?

//Magnus

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Michael GUIARD 2005-07-26 08:46:36 libpq request results
Previous Message Mehul Doshi-A20614 2005-07-25 15:07:03 Query on support for trigger functions defined in a Shared librar y in Windows