pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d02768ddd1791bab742cf131de726d0a36b3f337

Modified Files
--------------
src/backend/utils/mb/mbutils.c        | 9 +++++++--
src/bin/pg_dump/t/010_dump_connstr.pl | 6 ++----
src/bin/scripts/t/200_connstr.pl      | 6 ++----
3 files changed, 11 insertions(+), 10 deletions(-)



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

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4ec14e5aa1f79d01a2558b694ccbe7756c4d186e

Modified Files
--------------
src/backend/utils/mb/mbutils.c        | 9 +++++++--
src/bin/pg_dump/t/010_dump_connstr.pl | 6 ++----
src/bin/scripts/t/200_connstr.pl      | 6 ++----
3 files changed, 11 insertions(+), 10 deletions(-)



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

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/409f5303ced62246d36cabb8d4c5da5f7ce7f376

Modified Files
--------------
src/backend/utils/mb/mbutils.c        | 9 +++++++--
src/bin/pg_dump/t/010_dump_connstr.pl | 6 ++----
src/bin/scripts/t/200_connstr.pl      | 6 ++----
3 files changed, 11 insertions(+), 10 deletions(-)



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

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ff7555c4f13aa0c62f8e1ad890b2a2c0f512b4fc

Modified Files
--------------
src/backend/utils/mb/mbutils.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



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

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9dc65bcf9dece8aa92f554db51112645c9751c9e

Modified Files
--------------
src/backend/utils/mb/mbutils.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



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

* pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
@ 2019-05-12 17:47 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Noah Misch @ 2019-05-12 17:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

The function had been interpreting SQL_ASCII messages as UTF8, throwing
an error when they were invalid UTF8.  The new behavior is consistent
with pg_do_encoding_conversion().  This affects LOG_DESTINATION_STDERR
and LOG_DESTINATION_EVENTLOG, which will send untranslated bytes to
write() and ReportEventA().  On buildfarm member bowerbird, enabling
log_connections caused an error whenever the role name was not valid
UTF8.  Back-patch to 9.4 (all supported versions).

Discussion: https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/08e3fd96f70a711b4d19927d792dde4a04672c15

Modified Files
--------------
src/backend/utils/mb/mbutils.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)



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


end of thread, other threads:[~2019-05-12 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>
2019-05-12 17:47 pgsql: Fail pgwin32_message_to_UTF16() for SQL_ASCII messages. Noah Misch <noah@leadboat.com>

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