pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add a nonlocalized version of the severity field to client error
2+ messages / 1 participants
[nested] [flat]

* pgsql: Add a nonlocalized version of the severity field to client error
@ 2016-08-26 20:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-08-26 20:20 UTC (permalink / raw)
  To: pgsql-committers

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>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e796d0abab0f9508326c0aa721fe1475548fbe4e

Modified Files
--------------
doc/src/sgml/libpq.sgml        | 16 ++++++++++++++++
doc/src/sgml/protocol.sgml     | 19 +++++++++++++++++++
src/backend/libpq/pqmq.c       | 26 +++++++++++++++++++++-----
src/backend/utils/error/elog.c | 33 ++++++++++++++++++++-------------
src/include/postgres_ext.h     |  1 +
src/interfaces/libpq/fe-exec.c |  1 +
6 files changed, 78 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add a nonlocalized version of the severity field to client error
@ 2016-08-26 20:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-08-26 20:20 UTC (permalink / raw)
  To: pgsql-committers

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>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/26fa446da64716f12ab3a623434c644fcb344b2e

Modified Files
--------------
doc/src/sgml/libpq.sgml        | 16 ++++++++++++++++
doc/src/sgml/protocol.sgml     | 19 +++++++++++++++++++
src/backend/libpq/pqmq.c       | 26 +++++++++++++++++++++-----
src/backend/utils/error/elog.c | 33 ++++++++++++++++++++-------------
src/include/postgres_ext.h     |  1 +
src/interfaces/libpq/fe-exec.c |  1 +
6 files changed, 78 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-26 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26 20:20 pgsql: Add a nonlocalized version of the severity field to client error Tom Lane <tgl@sss.pgh.pa.us>
2016-08-26 20:20 pgsql: Add a nonlocalized version of the severity field to client error Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox