user defined functions

From: "Alison Stevenson" <as(at)it-innovation(dot)soton(dot)ac(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: user defined functions
Date: 2002-06-27 08:44:08
Message-ID: 0016E6145796E14680B831BB76A2129E044169@mailserver.it-innovation.soton.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

As part of an ongoing project I am looking to migrate a large application from a proprietary OODBMS (that shall remain nameless) to another database. Having read around a bit PostgreSQL looks like the best fit but I have a couple of concerns about the user defined functions which I wonder if anyone can address.

(btw if this isn't the right forum for such questions I apologise and would ask some kind person to point me to the right list)

Firstly, am I correct in thinking that user-defined functions cannot be written in C++ or Java? (The FAQ gives C, SQL, PL/pgSQL, Tcl, Perl, Python, or Ruby as the only possibilities)
Secondly what sort of SQL interface to the user defined functions is available? For example if I defined a 'distance' function to compare two feature_vectors stored as BLOBs can I call
t1.feature_vector.distance(t2.feature_vector)
?

Thanks folks,

Alison

Alison Stevenson
IT Innovation Centre
2 Venture Road
Chilworth Science Park
Southampton SO16 7NP

Tel: +44 23 8076 0834
Fax: +44 23 8076 0833

mailto:as(at)it-innovation(dot)soton(dot)ac(dot)uk
http://www.it-innovation.soton.ac.uk

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Del Solio 2002-06-27 08:57:44 pg_dump / consistent snapshot / backup
Previous Message Karel Zak 2002-06-27 07:50:45 Re: Large Objects