Re: Javascript support in the backend, i.e. PL/JS - Mailing list pgsql-hackers

From Sam Mason
Subject Re: Javascript support in the backend, i.e. PL/JS
Date
Msg-id 20071116082949.GM1955@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: Javascript support in the backend, i.e. PL/JS  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
On Fri, Nov 16, 2007 at 09:20:37AM +0100, Pavel Stehule wrote:
> On 16/11/2007, Sam Mason <sam@samason.me.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


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Javascript support in the backend, i.e. PL/JS
Next
From: Magnus Hagander
Date:
Subject: Re: [COMMITTERS] pgsql: update files for beta3