Re: pre-MED - Mailing list pgsql-hackers

From David Fetter
Subject Re: pre-MED
Date
Msg-id 20081030044910.GF18097@fetter.org
Whole thread Raw
In response to Re: pre-MED  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pre-MED
List pgsql-hackers
On Wed, Oct 29, 2008 at 10:23:36PM -0400, Tom Lane wrote:
> Hannu Krosing <hannu@krosing.net> writes:
> > On Wed, 2008-10-29 at 09:40 -0700, David Fetter wrote:
> >> Also, PL/Perl shouldn't be the only language to have this
> >> capability.  How might we add similar capabilities to PL/PythonU 
> 
> > I'll look at adding this to pl/pythonu.
> 
> I would argue that it's already designed wrong if there's need for
> PL-specific implementation effort.

I'm not sure how else to do this.  The current implementation returns
char *, which doesn't translate uniformly into the PLs.  More
sophisticated implementations--a tree or forest structure including
ANDs and ORs, etc.--are even less uniform to translate into PLs, at
least as far as I can tell.

The way I'm looking at it, this could be added onto SPI at varying
degrees of sophistication, but there would still be PL-specific
bindings for it, each of which would involve a PL-specific
implementation effort.

What big things have I missed here?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: recovery_target_time and last completed transaction log time
Next
From: "Pavel Stehule"
Date:
Subject: Re: WIP patch: convert SQL-language functions to return tuplestores