summaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/README
Commit message (Collapse)AuthorAgeFilesLines
* PL/Python: Update guide to alternative expected filesPeter Eisentraut2022-06-271-5/+0
| | | | | | | plpython_unicode_3.out was already removed a long time ago, so it being listed here was very out of date. plpython_types_3.out was removed with the Python 2 removal.
* Remove support for Python older than 2.6Peter Eisentraut2020-01-081-4/+0
| | | | | | | | | | | | | | | Supporting very old Python versions is a maintenance burden, especially with the several variant test files to maintain for Python <2.6. Since we have dropped support for older OpenSSL versions in 7b283d0e1d1d79bf1c962d790c94d2a53f3bb38a, RHEL 5 is now effectively desupported, and that was also the only mainstream operating system still using Python versions before 2.6, so it's a good time to drop those as well. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/98b69261-298c-13d2-f34d-836fd9c29b21%402ndquadrant.com
* PL/Python: Make tests pass with Python 3.5Peter Eisentraut2015-08-131-0/+1
| | | | | | | | | The error message wording for AttributeError has changed in Python 3.5. For the plpython_error test, add a new expected file. In the plpython_subtransaction test, we didn't really care what the exception is, only that it is something coming from Python. So use a generic exception instead, which has a message that doesn't vary across versions.
* Python 2.2 is no longer supportedPeter Eisentraut2012-05-101-3/+0
| | | | | | | It was already on its last legs, and it turns out that it was accidentally broken in commit 89e850e6fda9e4e441712012abe971fe938d595a and no one cared. So remove the rest the support for it and update the documentation to indicate that Python 2.3 is now required.
* Set client encoding explicitly in plpython_unicode testPeter Eisentraut2011-04-161-2/+1
| | | | | This will (hopefully) eliminate the need for the plpython_unicode_0.out expected file.
* Additional PL/Python regression test expected filePeter Eisentraut2011-03-011-6/+7
| | | | | plpython_subtransaction test needs a separate expected file specifically for Python 2.5.
* PL/Python explicit subtransactionsPeter Eisentraut2011-02-271-0/+2
| | | | | | | Adds a context manager, obtainable by plpy.subtransaction(), to run a group of statements in a subtransaction. Jan Urbański, reviewed by Steve Singer, additional scribbling by me
* Remove remaining expected file for Python 2.2Peter Eisentraut2011-02-271-5/+7
| | | | | | | We don't have complete expected coverage for Python 2.2 anyway, so it doesn't seem worth keeping this one around that no one appears to be updating anyway. Visual inspection of the differences ought to be good enough for those few who care about this obsolete Python version.
* Add validator to PL/PythonPeter Eisentraut2011-02-011-0/+2
| | | | Jan Urbański, reviewed by Hitoshi Harada
* Update Python version informationPeter Eisentraut2010-06-121-1/+1
|
* Improved printing of Python exceptions in PL/PythonPeter Eisentraut2010-01-161-5/+1
| | | | | | | | | | | | | | | | | | | Mimic the Python interpreter's own logic for printing exceptions instead of just using the straight str() call, so that you get plpy.SPIError instead of <class 'plpy.SPIError'> and for built-in exceptions merely UnicodeEncodeError Besides looking better this cuts down on the endless version differences in the regression test expected files.
* Python 3 support in PL/PythonPeter Eisentraut2009-12-151-0/+2
| | | | | | Behaves more or less unchanged compared to Python 2, but the new language variant is called plpython3u. Documentation describing the naming scheme is included.
* Add alternative expected file for unicode test for client encoding not UTF8Peter Eisentraut2009-10-141-1/+2
|
* Fix Unicode support in PL/PythonPeter Eisentraut2009-09-131-0/+5
| | | | | | | | | | Check calls of PyUnicode_AsEncodedString() for NULL return, probably because the encoding name is not known. Add special treatment for SQL_ASCII, which Python definitely does not know. Since using SQL_ASCII produces errors in the regression tests when non-ASCII characters are involved, we have to put back various regression test result variants.
* Add Unicode support in PL/PythonPeter Eisentraut2009-09-121-4/+0
| | | | | | | | | | | | PL/Python now accepts Unicode objects where it previously only accepted string objects (for example, as return value). Unicode objects are converted to the PostgreSQL server encoding as necessary. This change is also necessary for future Python 3 support, which treats all strings as Unicode objects. Since this removes the error conditions that the plpython_unicode test file tested for, the alternative result files are no longer necessary.
* Split the plpython regression test into test cases arranged by topic, insteadPeter Eisentraut2009-08-121-0/+8
of the previous monolithic setup-create-run sequence, that was apparently inherited from a previous test infrastructure, but makes working with the tests and adding new ones weird.