"trailing junk after numeric literal at or near ""512<d0>"""

From: Olleg Samoylov <splarv(at)ya(dot)ru>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: "trailing junk after numeric literal at or near ""512<d0>"""
Date: 2024-12-24 05:46:09
Message-ID: ffbc6d53-fcc4-44ba-a8b9-3f61247c09f8@ya.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all.

I have PostgreSQL 16.6. The log files are attached as partitions by
file_fdw to the SQL table. Common practice. But after the error message
"trailing junk after numeric literal at or near ""512<d0>""" (vim -b view)
was wrote, the reading all log was stopped with error from file_fdw:

ERROR: invalid byte sequence for encoding "UTF8": 0xd0 0x22

The reason is the error message in the log file (which must be utf-8)
consist of:
\x 22 35 31 32 d0 22
" 5 1 2 "
and d0 is not a utf-8 character so it block reading whole log file by
file_fdw. I think the correct behavior must be the error log function
must mask the wrong bytes by the ESC sequences, so PostgreSQL will be
able read such log file with help of file_fdw.
--
Olleg

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthias Leisi 2024-12-24 09:28:36 repmgr(d) versions 5.5 vs 5.4 from apt.postgresql.org
Previous Message Greg Sabino Mullane 2024-12-23 21:22:51 Re: Need help in database design