pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c

pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c

pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c

pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c

pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c

pgsql: Make escaping functions retain trailing bytes of an invalid char

2025-02-15 Thread Tom Lane
Make escaping functions retain trailing bytes of an invalid character. Instead of dropping the trailing byte(s) of an invalid or incomplete multibyte character, replace only the first byte with a known-invalid sequence, and process the rest normally. This seems less likely to confuse incautious c