|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Query on support for trigger functions defined in a Shared library in Windows> 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 ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
|
|
|
|
|
|
|
|
Re: Query on support for trigger functions defined in a Shared library in Windows"Magnus Hagander" <mha@...> writes:
>> 3) I restarted the postmaster both times. I got this error both times. >> :25: ERROR: could not load library "C:/Program >> Files/PostgreSQL/8.0/lib/testtrigfuncs.dll": dynamic load error > Yes. We really need to look at fixing that error message. I had > forgotten it completely :-( > Bruce, you think we can sneak that in after feature freeze? I would call > it a bugfix :-) Me too. That's been on the radar for awhile --- please do send in a patch. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org |
| Free embeddable forum powered by Nabble | Forum Help |