postgresql/src
Tom Lane 26fa446da6 Add a nonlocalized version of the severity field to client error messages.
This has been requested a few times, but the use-case for it was never
entirely clear.  The reason for adding it now is that transmission of
error reports from parallel workers fails when NLS is active, because
pq_parse_errornotice() wrongly assumes that the existing severity field
is nonlocalized.  There are other ways we could have fixed that, but the
other options were basically kluges, whereas this way provides something
that's at least arguably a useful feature along with the bug fix.

Per report from Jakob Egger.  Back-patch into 9.6, because otherwise
parallel query is essentially unusable in non-English locales.  The
problem exists in 9.5 as well, but we don't want to risk changing
on-the-wire behavior in 9.5 (even though the possibility of new error
fields is specifically called out in the protocol document).  It may
be sufficient to leave the issue unfixed in 9.5, given the very limited
usefulness of pq_parse_errornotice in that version.

Discussion: <A88E0006-13CB-49C6-95CC-1A77D717213C@eggerapps.at>
2016-08-26 16:20:17 -04:00
..
backend Add a nonlocalized version of the severity field to client error messages. 2016-08-26 16:20:17 -04:00
bin Build libpgfeutils before src/bin/pg_basebackup programs. 2016-08-23 23:40:38 -04:00
common pgindent run for 9.6 2016-06-09 18:02:36 -04:00
fe_utils Make initdb's suggested "pg_ctl start" command line more reliable. 2016-08-20 15:05:25 -04:00
include Add a nonlocalized version of the severity field to client error messages. 2016-08-26 16:20:17 -04:00
interfaces Add a nonlocalized version of the severity field to client error messages. 2016-08-26 16:20:17 -04:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl In plpgsql, don't try to convert int2vector or oidvector to expanded array. 2016-08-18 14:49:08 -04:00
port Stamp HEAD as 10devel. 2016-08-15 13:49:49 -04:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Fix instability in parallel regression tests. 2016-08-25 09:57:09 -04:00
timezone Update time zone data files to tzdata release 2016f. 2016-08-05 12:59:29 -04:00
tools initdb now needs to reference libpq include files in MSVC builds. 2016-08-20 16:53:25 -04:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
DEVELOPERS
Makefile Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
Makefile.global.in Provide and use a makefile target to build all generated headers. 2016-07-01 15:09:02 -04:00
Makefile.shlib Make the AIX case of Makefile.shlib safe for parallel make. 2016-07-23 20:30:03 -04:00
bcc32.mak
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak