diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-09-13 16:10:44 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-09-13 16:10:44 +0200 |
commit | 45b1a67a0fcb3f1588df596431871de4c93cb76f (patch) | |
tree | 4bb98640fe0cfda9abc5e656c7c2ad7abec610e1 /src/backend/tcop/postgres.c | |
parent | da5d4ea5aaac4fc02f2e2aec272efe438dd4e171 (diff) | |
download | postgresql-45b1a67a0fcb3f1588df596431871de4c93cb76f.tar.gz postgresql-45b1a67a0fcb3f1588df596431871de4c93cb76f.zip |
pg_clean_ascii(): escape bytes rather than lose them
Rather than replace each unprintable byte with a '?' character, replace
it with a hex escape instead. The API now allocates a copy rather than
modifying the input in place.
Author: Jacob Champion <jchampion@timescale.com>
Discussion: https://www.postgresql.org/message-id/CAAWbhmgsvHrH9wLU2kYc3pOi1KSenHSLAHBbCVmmddW6-mc_=w@mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions