Re: Can I use PG_FUNCTION_INFO_V1 in C++

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nic Ferrier <nferrier(at)tapsellferrier(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can I use PG_FUNCTION_INFO_V1 in C++
Date: 2002-01-24 16:20:49
Message-ID: 15597.1011889249@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nic Ferrier <nferrier(at)tapsellferrier(dot)co(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Javier Vilarroig 2002-01-24 16:22:44 Re: Problems with initdb on Cygwin
Previous Message Nic Ferrier 2002-01-24 16:00:06 Can I use PG_FUNCTION_INFO_V1 in C++