Re: Can I use PG_FUNCTION_INFO_V1 in C++ - Mailing list pgsql-general

From Tom Lane
Subject Re: Can I use PG_FUNCTION_INFO_V1 in C++
Date
Msg-id 15597.1011889249@sss.pgh.pa.us
Whole thread Raw
In response to Can I use PG_FUNCTION_INFO_V1 in C++  (Nic Ferrier <nferrier@tapsellferrier.co.uk>)
List pgsql-general
Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
> I need to have a C++ class become a dynamically linked function.
> Can I use PG_FUNCTION_INFO_V1 on a class method?

Only if it matches the expected signature, which is going to force
you to make it a static method.  You'll probably want to have a set
of static linking methods that call into the regular methods of
the class.

            regards, tom lane

pgsql-general by date:

Previous
From: Nic Ferrier
Date:
Subject: Can I use PG_FUNCTION_INFO_V1 in C++
Next
From: "Hiroshi Inoue"
Date:
Subject: Re: persistent portals/cursors (between transactions)