Re: Decision by Monday: PQescapeString() vs. encoding violation

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>, Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@postgresql.org, pgsql@j-davis.com
Date: 2025-02-15T20:59:56Z
Lists: pgsql-hackers
On 2025-02-15 15:53:20 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Are you planning to push / backpatch, or should I?
> 
> I can take care of it, if you like.

That'd be appreciated!



Commits

  1. Make escaping functions retain trailing bytes of an invalid character.

  2. Fix handling of invalidly encoded data in escaping functions