--On Montag, Dezember 12, 2005 11:16:19 +0100 Martijn van Oosterhout
<kleptog@xxxxxxxxx> wrote:
On Sun, Dec 11, 2005 at 10:03:57PM -0600, Tony Caduto wrote:
Has there ever been any discussion on
using Free Pascal to create functions (C Style)?
I know pascal can be used to create user defined functions in other
databases like Firebird (which was originally coded in C and now C++)
Thought about that some time ago, too...
Has anyone tried? PostgreSQL doesn't particluarly care what language a
function was written in, just as long as the calling convention
matches.
That said, pascal has historically had a different calling convention
and that is likely to cause the most issues.
Free Pascal offers the cdecl modifier, which allows to declare and access
functions with C style call convention. However, someone needs to write the
necessary interface to the internal PostgreSQL structures that are needed
for UDFs.
Have a nice day,
dito
--
Thanks
Bernd