postgresql/src/interfaces/libpq
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
..
po Translation updates 2015-06-28 23:56:55 -04:00
test Fix libpq test expected output file 2015-03-11 17:04:27 -03:00
.gitignore Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:19:38 -04:00
bcc32.mak Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:19:38 -04:00
exports.txt Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
fe-auth.c Fix more typos in comments. 2015-05-20 19:45:43 +03:00
fe-auth.h Fix libpq's behavior when /etc/passwd isn't readable. 2015-01-11 12:35:44 -05:00
fe-connect.c Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
fe-exec.c Fix documentation for libpq's PQfn(). 2015-03-08 13:35:28 -04:00
fe-lobj.c Cast to (void *) rather than (int *) when passing int64's to PQfn(). 2015-03-08 13:58:28 -04:00
fe-misc.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
fe-print.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
fe-protocol2.c Improve handling of out-of-memory in libpq. 2015-07-07 18:44:59 +03:00
fe-protocol3.c Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
fe-secure-openssl.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
fe-secure.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
libpq-events.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
libpq-events.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
libpq-fe.h Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
libpq-int.h Rearrange the handling of error context reports. 2015-09-05 11:58:33 -04:00
libpq.rc.in Stamp HEAD as 9.6devel. 2015-06-30 14:01:15 -04:00
Makefile Stamp shared-library minor version numbers for 9.6. 2015-06-30 14:06:04 -04:00
nls.mk Add new files to nls.mk 2015-05-17 22:55:17 -04:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
pqexpbuffer.h Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
pthread-win32.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Tweak __attribute__-wrapping macros for better pgindent results. 2015-03-26 14:03:25 -04:00
win32.h Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
win32.mak Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:19:38 -04:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.