Re: Javascript support in the backend, i.e. PL/JS

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Javascript support in the backend, i.e. PL/JS
Дата
Msg-id 20071116082949.GM1955@frubble.xen.chris-lamb.co.uk
обсуждение исходный текст
Ответ на Re: Javascript support in the backend, i.e. PL/JS  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Javascript support in the backend, i.e. PL/JS
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [COMMITTERS] pgsql: update files for beta3