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

Re: writing backend extensions using Visual Studio

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Landrum <greg(dot)landrum(at)gmail(dot)com>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: writing backend extensions using Visual Studio
Date: 2005-03-25 22:57:07
Message-ID: 15980.1111791427@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
Greg Landrum <greg(dot)landrum(at)gmail(dot)com> writes:
> 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. :-)

Sounds like MSVC is interpreting the layout of the FunctionCallInfo
struct differently than the MinGW compiler did.  You should probably
look into whether there are "pragma pack" directives lurking in your
program.  ("pragma pack" is evil...)

			regards, tom lane

In response to

Responses

pgsql-hackers-win32 by date

Next:From: Greg LandrumDate: 2005-03-26 15:58:30
Subject: Re: writing backend extensions using Visual Studio
Previous:From: Greg LandrumDate: 2005-03-25 22:28:03
Subject: writing backend extensions using Visual Studio

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