postgresql_16:6.9.10 Python 2 vs. Python 3
PostgreSQL 16 > Server Programming > PL/Python — Python Procedural Language > Python 2 vs. Python 3
PL/Python supports only Python 3. Past versions of PostgreSQL supported Python 2, using the plpythonu and plpython2u language names.