On Fri, Nov 16, 2007 at 09:20:37AM +0100, Pavel Stehule wrote: > On 16/11/2007, Sam Mason <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings