Re: What's our minimum supported Python version? - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: What's our minimum supported Python version?
Date
Msg-id CAGECzQSxDU4iGd2SyDvy4_PW4h1VbJ6O8PBJAbO71gqg4Sgdag@mail.gmail.com
Whole thread Raw
In response to Re: What's our minimum supported Python version?  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: What's our minimum supported Python version?
List pgsql-hackers
On Wed, 23 Apr 2025 at 13:24, Devrim Gündüz <devrim@gunduz.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.



pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: vacuumdb --missing-stats-only and pg_upgrade from PG13
Next
From: Christoph Berg
Date:
Subject: Re: Enable data checksums by default