postgres/contrib/hstore_plperl
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
..
expected Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
sql Fix parse tree of DROP TRANSFORM and COMMENT ON TRANSFORM 2015-05-18 22:55:14 -04:00
.gitignore Add transforms feature 2015-04-26 10:33:14 -04:00
Makefile Enable transforms modules to build and test on Cygwin. 2015-07-18 10:09:04 -04:00
hstore_plperl--1.0.sql Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plperl.c Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
hstore_plperl.control Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plperlu--1.0.sql Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plperlu.control Add transforms feature 2015-04-26 10:33:14 -04:00