| From: | Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Michael Paquier <michael(at)paquier(dot)xyz>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Aleksander Alekseev <aleksander(at)tigerdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Melanie Plageman <melanieplageman(at)gmail(dot)com> |
| Subject: | Re: Direction for test frameworks: Perl TAP vs. Python/pytest |
| Date: | 2026-06-18 22:09:48 |
| Message-ID: | CAOYmi+mgwdYb_SKgCXA1DKvDQXjZfRiY5mXy1bxrJ44fBHviig@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Jun 18, 2026 at 2:38 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Another thing to think about: it's not just "make Python a hard
> requirement". It's "make Python >= some-version a hard requirement".
> If we intend to be able to back-patch the test framework, that will
> constrain our ability to use bleeding-edge Python features in it.
Right.
If we don't allow our minor version requirements to slide up from the
OS base version that was originally shipped, and we don't decouple the
Python language version we write our tests in from the Python (ABI?)
version that Postgres is built against, we will forever be writing
tests in Pythons that have been end-of-life for 7-10 years. (Python
3.9, which is what RHEL 9 ships and therefore PG20 must support when
it releases in 2027, was EOL last year.)
So I'd like to put work into solving one or both of those. See also [1, 2].
Thanks,
--Jacob
[1] https://postgr.es/m/CAOYmi%2Bkw0RrOYsFto_Wd2TQ36NbYrT6MAk-fAZsiBdR6Qb5E-A%40mail.gmail.com
[2] https://postgr.es/m/5391e576-d44c-4d02-80ea-a50b8047ce75%40eisentraut.org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2026-06-18 22:23:36 | DDL deparse |
| Previous Message | Andrew Dunstan | 2026-06-18 22:01:14 | Re: Direction for test frameworks: Perl TAP vs. Python/pytest |