Re: What's our minimum supported Python version?

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Renan Alves Fonseca <renanfonseca(at)gmail(dot)com>, Florents Tselai <florents(dot)tselai(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Christoph Berg <myon(at)debian(dot)org>
Subject: Re: What's our minimum supported Python version?
Date: 2025-04-23 14:53:51
Message-ID: CAGECzQSxDU4iGd2SyDvy4_PW4h1VbJ6O8PBJAbO71gqg4Sgdag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 23 Apr 2025 at 13:24, Devrim Gündüz <devrim(at)gunduz(dot)org> wrote:
> psycopg is included in RHEL 8, but PGDG packages are up2date (2.7.5 vs
> 2.9.5) so they override OS packages. That is why things will break.
>
> A solution would be creating our own psycopg2 (likely for Python 3.12)
> package, update all PGDG packages that depend on psycopg2 to use that
> package. That is not impossible (I have already psycopg2 built against
> Python 3.11 on SLES 15), but I don't know how much work it will be and
> its impact as that set of update should go to both RHEL 8, 9 and 10
> (RHEL 10 already includes Python 3.12 by default)

Thanks for that explanation, now I understand the problem.

> I can go for this solution if it is *absolutely* required. We already
> have custom packages to support PostGIS, so that is not a new topic for
> me.

I don't really think this would be required to bump Postgres its
minimum supported postgres version. psycopg is a client and postgresql
is the server, it seems fine for them to use different Python
versions. The postgresql-server package could depend on python3.9,
while psycopg packages would happily use python3.6.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2025-04-23 15:28:22 Re: Enable data checksums by default
Previous Message Christoph Berg 2025-04-23 14:38:16 Re: vacuumdb --missing-stats-only and pg_upgrade from PG13