aboutsummaryrefslogtreecommitdiff
path: root/contrib/hstore_plpython
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-09-05 11:58:20 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-09-05 11:58:33 -0400
commit0426f349effb6bde2061f3398a71db7180c97dd9 (patch)
tree741fcee27d57266182690fefd31721b8d6546b1e /contrib/hstore_plpython
parentc80b5f66c6faff085e312492be0aa50754e99eb9 (diff)
downloadpostgresql-0426f349effb6bde2061f3398a71db7180c97dd9.tar.gz
postgresql-0426f349effb6bde2061f3398a71db7180c97dd9.zip
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
Diffstat (limited to 'contrib/hstore_plpython')
-rw-r--r--contrib/hstore_plpython/expected/hstore_plpython.out2
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/hstore_plpython/expected/hstore_plpython.out b/contrib/hstore_plpython/expected/hstore_plpython.out
index b7a6a92ac6f..23091d3729c 100644
--- a/contrib/hstore_plpython/expected/hstore_plpython.out
+++ b/contrib/hstore_plpython/expected/hstore_plpython.out
@@ -13,7 +13,6 @@ return len(val)
$$;
SELECT test1('aa=>bb, cc=>NULL'::hstore);
INFO: [('aa', 'bb'), ('cc', None)]
-CONTEXT: PL/Python function "test1"
test1
-------
2
@@ -32,7 +31,6 @@ return len(val)
$$;
SELECT test1n('aa=>bb, cc=>NULL'::hstore);
INFO: [('aa', 'bb'), ('cc', None)]
-CONTEXT: PL/Python function "test1n"
test1n
--------
2