From: | Sam Mason <sam(at)samason(dot)me(dot)uk> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Javascript support in the backend, i.e. PL/JS |
Date: | 2007-11-16 08:29:49 |
Message-ID: | 20071116082949.GM1955@frubble.xen.chris-lamb.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Nov 16, 2007 at 09:20:37AM +0100, Pavel Stehule wrote:
> On 16/11/2007, Sam Mason <sam(at)samason(dot)me(dot)uk> wrote:
> > Hi All,
> >
> > I've been writing some code[1] to support Javascript in the backend.
> > I've got the basic bits working, the next job for me is implementing
> > SPI support. Currently, it runs simple bits of code like the
> > following:
> >
> > CREATE FUNCTION jsinc(n INTEGER) RETURNS INTEGER LANGUAGE pljs AS $$
> > return n+1;
> > $$;
>
> nice
It obviously runs much more complicated bits of javascript, but the main
point is that it can't touch the outside world in any way. Functions
are (as far as I understand the javascript implementation) completely
deterministic (IMMUTABLE, in PG speak).
Sam
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2007-11-16 08:37:47 | Re: [COMMITTERS] pgsql: update files for beta3 |
Previous Message | Pavel Stehule | 2007-11-16 08:20:37 | Re: Javascript support in the backend, i.e. PL/JS |