From dd4cd55c15886c46378dc27f44f59a6de8c4d45b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 15 Dec 2009 22:59:55 +0000 Subject: Python 3 support in PL/Python Behaves more or less unchanged compared to Python 2, but the new language variant is called plpython3u. Documentation describing the naming scheme is included. --- src/pl/plpython/expected/plpython_test.out | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/pl/plpython/expected/plpython_test.out') diff --git a/src/pl/plpython/expected/plpython_test.out b/src/pl/plpython/expected/plpython_test.out index c5cfe5a94f..a229b18f44 100644 --- a/src/pl/plpython/expected/plpython_test.out +++ b/src/pl/plpython/expected/plpython_test.out @@ -1,4 +1,5 @@ -- first some tests of basic functionality +CREATE LANGUAGE plpython2u; -- really stupid function just to get the module loaded CREATE FUNCTION stupid() RETURNS text AS 'return "zarkon"' LANGUAGE plpythonu; select stupid(); @@ -7,6 +8,14 @@ select stupid(); zarkon (1 row) +-- check 2/3 versioning +CREATE FUNCTION stupidn() RETURNS text AS 'return "zarkon"' LANGUAGE plpython2u; +select stupidn(); + stupidn +--------- + zarkon +(1 row) + -- test multiple arguments CREATE FUNCTION argument_test_one(u users, a1 text, a2 text) RETURNS text AS -- cgit v1.2.1