summaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/expected
AgeCommit message (Collapse)Author
2022-03-08plpython: Remove regression test infrastructure for Python 2.Andres Freund
Since 19252e8ec93 we reject Python 2 during build configuration. Now that the dust on the buildfarm has settled, remove regression testing infrastructure dealing with differing output between Python 2 / 3. Reviewed-By: Peter Eisentraut <[email protected]> Reviewed-By: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected]
2018-04-02Remove contrib/jsonb_plpython's tests for infinity and NaN conversions.Tom Lane
These tests don't work reliably with pre-2.6 Python versions, since Python code like float('inf') was not guaranteed to work before that, even granting an IEEE-compliant platform. Since there's no explicit handling of these cases in jsonb_plpython, we're not adding any real code coverage by testing them, and thus it doesn't seem to make sense to go to any great lengths to work around the test instability. Discussion: https://postgr.es/m/[email protected]
2018-03-28Fix jsonb_plpython tests on older Python versionsPeter Eisentraut
Rewrite one test to avoid a case where some Python versions have output format differences (Decimal('1') vs Decimal("1")).
2018-03-28Transforms for jsonb to PL/PythonPeter Eisentraut
Add a new contrib module jsonb_plpython that provide a transform between jsonb and PL/Python. jsonb values are converted to appropriate Python types such as dicts and lists, and vice versa. Author: Anthony Bykov <[email protected]> Reviewed-by: Aleksander Alekseev <[email protected]> Reviewed-by: Nikita Glukhov <[email protected]>