Re: Free Pascal and Postgresql Functions, Possible?

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Free Pascal and Postgresql Functions, Possible?
Date: 2005-12-12 10:46:24
Message-ID: 5ED593BC2E6FCA1797D01B55@[192.168.100.105]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--On Montag, Dezember 12, 2005 11:16:19 +0100 Martijn van Oosterhout
<kleptog(at)svana(dot)org> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Prakash Nair 2005-12-12 11:25:21 postgreSQL 8.0.4 - Windows driver
Previous Message CSN 2005-12-12 10:25:18 Negative offsets