]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use plpythonu in plpython tests added by commit 0b7719f74
authorRichard Guo <rguo@postgresql.org>
Mon, 29 Jun 2026 05:21:15 +0000 (14:21 +0900)
committerRichard Guo <rguo@postgresql.org>
Mon, 29 Jun 2026 05:21:15 +0000 (14:21 +0900)
commit309dc4526de5ca4cb871fae80a1470feb0fad231
treeb5110ed5bd1afd3ae363993a6263a53881d173a0
parent0b7719f744e694a2a1946f7ddf230bf4fdfad20c
Use plpythonu in plpython tests added by commit 0b7719f74

Commit 0b7719f74 added regression tests that spell the language name
as plpython3u.  That works on the master branch, but on v14 the
plpython tests must use the unversioned name plpythonu: the plpython3u
extension is built only in Python 3 builds, and for those builds
regress-python3-mangle.mk rewrites plpythonu to plpython3u in the test
files.  In a Python 2 build the new tests instead failed with
"language \"plpython3u\" does not exist".

Spell the language as plpythonu in the new tests, matching every other
plpython test in this branch, so they work in both Python 2 and Python
3 builds.  This is needed only in v14; later branches no longer
support Python 2 and have dropped the mangling step.

Per buildfarm member hippopotamus.
contrib/hstore_plpython/expected/hstore_plpython.out
contrib/hstore_plpython/sql/hstore_plpython.sql
contrib/jsonb_plpython/expected/jsonb_plpython.out
contrib/jsonb_plpython/sql/jsonb_plpython.sql
src/pl/plpython/expected/plpython_composite.out
src/pl/plpython/expected/plpython_spi.out
src/pl/plpython/expected/plpython_types.out
src/pl/plpython/sql/plpython_composite.sql
src/pl/plpython/sql/plpython_spi.sql
src/pl/plpython/sql/plpython_types.sql