"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> While it may work, we don't fully support using MSVC for developing
> server-side extensions. Not sure if it's related to your problem, but
> it's quite possible.
The symptoms sound like the backend is not recognizing the function
as being V1 calling convention, which suggests something wrong with
the expansion of the PG_FUNCTION_INFO_V1 macro (eg, the created routine
doesn't have the right name). Hard to say more than that.
regards, tom lane