Re: Free Pascal and Postgresql Functions, Possible?

From: Tony Caduto <tony(dot)caduto(at)amsoftwaredesign(dot)com>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Free Pascal and Postgresql Functions, Possible?
Date: 2005-12-12 14:52:34
Message-ID: 439D8EB2.3090902@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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

Sounds like it may be possible then.
Man, if someone where to come up with a simple example on just doing
something like adding two numbers or similar it might convince a few
Delphi/Kylix/Freepascal users to switch over from Firebird/Interbase.

I guess I could help with such a task if someone with C experience could
help also. I have Freepascal/Lazarus installed as well as Kylix.

Does anyone know what header would need to be ported to Pascal?

Later,

Tony

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-12-12 15:16:49 Re: PostGreSQL 8.1.0 : out of memory during vacuum full analyze
Previous Message Tony Caduto 2005-12-12 14:43:52 Re: Free Pascal and Postgresql Functions, Possible?