agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Richard Guo <rguo@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use plpythonu in plpython tests added by commit 0b7719f74
Date: Mon, 29 Jun 2026 05:22:13 +0000
Message-ID: <E1we4Rh-000bxy-1P@gemulon.postgresql.org> (raw)

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.

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/309dc4526de5ca4cb871fae80a1470feb0fad231

Modified Files
--------------
contrib/hstore_plpython/expected/hstore_plpython.out |  8 ++++----
contrib/hstore_plpython/sql/hstore_plpython.sql      |  8 ++++----
contrib/jsonb_plpython/expected/jsonb_plpython.out   | 10 +++++-----
contrib/jsonb_plpython/sql/jsonb_plpython.sql        | 10 +++++-----
src/pl/plpython/expected/plpython_composite.out      |  2 +-
src/pl/plpython/expected/plpython_spi.out            |  6 +++---
src/pl/plpython/expected/plpython_types.out          |  2 +-
src/pl/plpython/sql/plpython_composite.sql           |  2 +-
src/pl/plpython/sql/plpython_spi.sql                 |  6 +++---
src/pl/plpython/sql/plpython_types.sql               |  2 +-
10 files changed, 28 insertions(+), 28 deletions(-)



Message-ID: <E1we4Rh-000bxy-1P@gemulon.postgresql.org>
Permalink:  ../E1we4Rh-000bxy-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1we4Rh-000bxy-1P@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rguo@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use plpythonu in plpython tests added by commit 0b7719f74
  In-Reply-To: <E1we4Rh-000bxy-1P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox