Hello PL/Python

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Hello PL/Python
Date: 2000-07-19 15:24:46
Message-ID: Pine.LNX.3.96.1000719171527.27310L-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Today afternoon I a little study libpython1.5 and I mean create
new PL language is not a problem.

I a little play with it, and here is effect:

test=# CREATE FUNCTION py_test() RETURNS text AS '
test'# a = ''Hello '';
test'# b = ''PL/Python'';
test'# plpython.retval( a + b );
test'# ' LANGUAGE 'plpython';
CREATE
test=#
test=#
test=# SELECT py_test();
py_test
-----------------
Hello PL/Python
(1 row)

Comments? Works on this already anyone?

Karel

PS. I'am not Python guru, I love 'C' and good shared libs only :-)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Mount 2000-07-19 15:26:30 RE: System tables since 7.0.0
Previous Message Tom Lane 2000-07-19 15:12:59 Re: System tables since 7.0.0