Search Postgresql Archives

Re: Free Pascal and Postgresql Functions, Possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux