Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAbFy-00HEzo-SJ for pgsql-committers@arkaria.postgresql.org; Thu, 01 May 2025 21:15:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uAbFw-005KzD-PB for pgsql-committers@arkaria.postgresql.org; Thu, 01 May 2025 21:15:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAbFw-005Kz5-IR for pgsql-committers@lists.postgresql.org; Thu, 01 May 2025 21:15:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uAbFv-000bJa-1p for pgsql-committers@lists.postgresql.org; Thu, 01 May 2025 21:15:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 541LFesM1658527; Thu, 1 May 2025 17:15:40 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Make escaping functions retain trailing bytes of an invalid char In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Thu, 01 May 2025 23:04:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1658525.1746134140.1@sss.pgh.pa.us> Date: Thu, 01 May 2025 17:15:40 -0400 Message-ID: <1658526.1746134140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 15.02.25 22:20, Tom Lane wrote: >> Make escaping functions retain trailing bytes of an invalid character. > I think the backpatch of this to PG15 and older has erroneously dropped > newlines at the end of some error messages. Oh! You're right, though I'd phrase it differently: I should have *added* newlines when back-patching into those branches. Will fix. regards, tom lane