Re: Can I use PG_FUNCTION_INFO_V1 in C++
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Cc: pgsql-general@postgresql.org
Date: 2002-01-24T16:20:49Z
Lists: 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