postgresql/contrib/sepgsql
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 sepgsql regression tests. 2015-08-30 11:09:05 -07:00
.gitignore Minor sepgsql regression test fixes. 2011-02-02 23:46:51 -05:00
database.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
dml.c Represent columns requiring insert and update privileges indentently. 2015-05-08 00:20:46 +02:00
hooks.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
label.c sepgsql: Improve error message when unsupported object type is labeled. 2015-03-11 12:12:10 -04:00
launcher Fix sepgsql regression tests. 2015-08-30 11:09:05 -07:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
proc.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
relation.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
schema.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
selinux.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
sepgsql-regtest.te Fix sepgsql regression tests. 2015-08-30 11:09:05 -07:00
sepgsql.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
sepgsql.sql.in sepgsql_setcon(). 2012-03-15 16:08:40 -04:00
test_sepgsql sepgsql: Minor improvement to test script, doc fix. 2013-04-17 09:55:24 -04:00
uavc.c Update copyright for 2015 2015-01-06 11:43:47 -05:00