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

writing backend extensions using Visual Studio

From: Greg Landrum <greg(dot)landrum(at)gmail(dot)com>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: writing backend extensions using Visual Studio
Date: 2005-03-25 22:28:03
Message-ID: 60825b0f05032514285d9be9e2@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Greetings,

I am trying to port a library of backend functions that I've built and
tested on linux to the windows version of postgresql (v8.0.1).

I installed pgSQL on the windows box (win2k) using the binary
installer a while ago and the base installation works fine, so long as
I don't attempt to use my backend functions.

Because the extension functions use a bunch of in-house libraries that
are built with Visual Studio, I really need an approach that works
with MSVC.

After playing around for a while, I managed to get a DLL to build and
work at least far enough that I can CREATE and call the functions from
psql.  However, it looks like every argument I pass into the functions
comes in as null (e.g. PG_ARGISNULL returns true). This clearly is
less than helpful. :-)

Can anyone point me to documentation or example files for how to set
up a project for building extensions functions for postgres on
windows?

Thanks for any help,
-greg

Responses

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2005-03-25 22:57:07
Subject: Re: writing backend extensions using Visual Studio
Previous:From: Andrew SullivanDate: 2005-03-24 13:17:49
Subject: Re: Simple query takes a long time on win2K

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group