postgresql/src/pl/plpython/expected
Tom Lane 0426f349ef Rearrange the handling of error context reports.
Remove the code in plpgsql that suppressed the innermost line of CONTEXT
for messages emitted by RAISE commands.  That was never more than a quick
backwards-compatibility hack, and it's pretty silly in cases where the
RAISE is nested in several levels of function.  What's more, it violated
our design theory that verbosity of error reports should be controlled
on the client side not the server side.

To alleviate the resulting noise increase, introduce a feature in libpq
and psql whereby the CONTEXT field of messages can be suppressed, either
always or only for non-error messages.  Printing CONTEXT for errors only
is now their default behavior.

The actual code changes here are pretty small, but the effects on the
regression test outputs are widespread.  I had to edit some of the
alternative expected outputs by hand; hopefully the buildfarm will soon
find anything I fat-fingered.

In passing, fix up (again) the output line counts in psql's various
help displays.  Add some commentary about how to verify them.

Pavel Stehule, reviewed by Petr Jelínek, Jeevan Chalke, and others
2015-09-05 11:58:33 -04:00
..
plpython_composite.out Fix plpython crash when returning string representation of a RECORD result. 2015-08-21 12:21:37 -04:00
plpython_do.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_drop.out Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython_error.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_error_0.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_error_5.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_global.out Make PL/Python tests more compatible with Python 3 2009-08-24 20:25:25 +00:00
plpython_import.out PL/Python: Adjust the regression tests for Python 3.3 2012-05-11 23:04:47 +03:00
plpython_newline.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
plpython_params.out PL/Python: Adjust the regression tests for Python 3.3 2012-05-11 23:04:47 +03:00
plpython_populate.out Convert the existing regression test scripts for the various optional 2005-05-14 17:55:22 +00:00
plpython_quote.out Add PL/Python functions for quoting strings 2011-02-22 23:41:23 +02:00
plpython_record.out PL/Python: Accept strings in functions returning composite types 2012-04-26 21:03:48 +03:00
plpython_schema.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
plpython_setof.out Add a regression test case for plpython function returning setof RECORD. 2013-12-11 17:22:55 -05:00
plpython_spi.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_subtransaction.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_subtransaction_0.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_subtransaction_5.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_test.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_trigger.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_types.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_types_3.out Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
plpython_unicode.out Make plpython_unicode regression test work in more database encodings. 2014-06-03 12:01:54 -04:00
plpython_void.out Enhanced error context support in PL/Python 2009-08-25 12:44:59 +00:00
README PL/Python: Make tests pass with Python 3.5 2015-08-13 23:55:20 -04:00

Guide to alternative expected files:

plpython_error_0.out			Python 2.4 and older
plpython_error_5.out			Python 3.5 and newer

plpython_unicode.out			server encoding != SQL_ASCII
plpython_unicode_3.out			server encoding == SQL_ASCII

plpython_subtransaction_0.out	Python 2.4 and older (without with statement)
plpython_subtransaction_5.out	Python 2.5 (without with statement)

plpython_types_3.out			Python 3.x