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 archives
  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: Tue, 26 Jul 2005 14:58:18 +0200
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCE6C77CB@algol.sollentuna.se> <text/plain>

> Hi Magnus,
> 
> Thanks. Here's what I did:
> 1. Downloaded the 8.0 source code.
> 2. Created a test directory in postgresql-8.0.0\src\ 3. Wrote 
> a  sample c snippet as given below:
> 4. Compiled using gcc (version 3.4.4) in cygwin 5. Used the 
> following make file to generate the dll.

You cannot use cygwin GCC to build extensions to the win32 version of
postgresql. Only for the cygwin version (I would assume that works, I
haven't tested it. I know it doesn't work for the win32 version). You
will need to use the MingW build system to build your DLLs.

(BTW, yuo really want 8.0.3 and not 8.0.0 for your systems. No changes
in the build system stuff, but several other fixes you definitly want)

//Magnus



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group