mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Drop support for Python 2.3
There is no specific reason for this right now, but keeping support for old Python versions around indefinitely increases the maintenance burden. The oldest supported Python version is now Python 2.4, which is still shipped in RHEL/CentOS 5 by default. In configure, add a check for the required Python version and give a friendly error message for an old version, instead of relying on an obscure build error later on.
This commit is contained in:
@ -6,9 +6,7 @@ LANGUAGE plpythonu
|
||||
TRANSFORM FOR TYPE hstore
|
||||
AS $$
|
||||
assert isinstance(val, dict)
|
||||
i = list(val.items())
|
||||
i.sort()
|
||||
plpy.info(i)
|
||||
plpy.info(sorted(val.items()))
|
||||
return len(val)
|
||||
$$;
|
||||
SELECT test1('aa=>bb, cc=>NULL'::hstore);
|
||||
@ -24,9 +22,7 @@ LANGUAGE plpython2u
|
||||
TRANSFORM FOR TYPE hstore
|
||||
AS $$
|
||||
assert isinstance(val, dict)
|
||||
i = list(val.items())
|
||||
i.sort()
|
||||
plpy.info(i)
|
||||
plpy.info(sorted(val.items()))
|
||||
return len(val)
|
||||
$$;
|
||||
SELECT test1n('aa=>bb, cc=>NULL'::hstore);
|
||||
|
Reference in New Issue
Block a user