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 1rokhB-003B6y-8O for pgsql-sql@arkaria.postgresql.org; Mon, 25 Mar 2024 13:49:01 +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 1rokh9-003bh6-Ou for pgsql-sql@arkaria.postgresql.org; Mon, 25 Mar 2024 13:49:00 +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 1rokh9-003bgy-GB for pgsql-sql@lists.postgresql.org; Mon, 25 Mar 2024 13:48:59 +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.94.2) (envelope-from ) id 1rokh6-006PRH-Kv for pgsql-sql@lists.postgresql.org; Mon, 25 Mar 2024 13:48:59 +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 42PDmQ1O2472955; Mon, 25 Mar 2024 09:48:26 -0400 From: Tom Lane To: ml@ft-c.de, ft cc: pgsql-sql@lists.postgresql.org Subject: Re: decode/encode backslash to base64 In-reply-to: <627b2e786823e1a27c3ee982c381fab627c39ff6.camel@ft-c.de> References: <627b2e786823e1a27c3ee982c381fab627c39ff6.camel@ft-c.de> Comments: In-reply-to ft message dated "Sun, 24 Mar 2024 22:29:39 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2472953.1711374506.1@sss.pgh.pa.us> Date: Mon, 25 Mar 2024 09:48:26 -0400 Message-ID: <2472954.1711374506@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ft writes: > here is an example for decode and encode > a string with backslash: 'a\' That is not valid input syntax for bytea. See https://www.postgresql.org/docs/current/datatype-binary.html You've said nothing about what your actual purpose is, so it's difficult to suggest what you should do differently. regards, tom lane