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 1v4Fj1-00BLga-3x for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Oct 2025 09:35: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 1v4Fiy-006xmm-VS for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Oct 2025 09:35:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v4Fiy-006xmc-LJ for pgsql-hackers@lists.postgresql.org; Thu, 02 Oct 2025 09:35:45 +0000 Received: from ewsoutbound.kpnmail.nl ([195.121.94.185]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v4Fiu-00119G-36 for pgsql-hackers@postgresql.org; Thu, 02 Oct 2025 09:35:44 +0000 X-KPN-MessageId: 33ae1ce4-9f73-11f0-ad1a-005056999439 Received: from smtp.kpnmail.nl (unknown [10.31.155.5]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 33ae1ce4-9f73-11f0-ad1a-005056999439; Thu, 02 Oct 2025 11:35:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=CZpn8dKHZT9TqL1L7RAaHYqPKY3BP7ASSAzU7w4lbW0=; b=VydlLlKs+y7gN9ZvSr6J59/PCR9goA9t98G5hc2FAa6m1hBc+VJUATEEN8EhHIfbvEQ/llTjhZqO0 tr7/K7FR2CoP+ot9GuqXCf0258R4y45hTRG+lbeBeH3ZKRBWSLAFw6rRaHI49RwsWtD1ncBO3XkQeT OiF2JkWVDmzdNsElTLCKEfbEi643Dyb2u6fBsxIXxW8qEidrFfF+6FJYl9lakiLNEvbixoI47/0t2S 5lH0rB48AnDbK1vYPMEJryclqt284zE1WD6riel+dD8JYW+kzOsc6RakWgunQzCnF3cG9htLL1jrBd xpx3cVnCmq6n0K5OsgXVowZr3gQdfeg== X-KPN-MID: 33|H6OaXSdOKx9eIpjXDF/Ztno4/L8V/ymxL48VXvHUOSnBCsUtSXqYRdNWa/wnCC6 cW6t6MqD5rOC/CH2bcMyBj1gCAWmZlMp6isTSDuNTrEg= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|HcnJ0F0wgZrV7a9x0AQd5OrujkC6gxHVur4uukHtEtbwYSMElt8wB7q7skekFU7 wuidSrhPAIM0Kz6Hn3nvtcg== X-Originating-IP: 45.83.234.25 Received: from [192.168.178.31] (unknown [45.83.234.25]) by smtp.xs4all.nl (Halon) with ESMTPSA id 2762478b-9f73-11f0-8d3e-00505699b758; Thu, 02 Oct 2025 11:35:38 +0200 (CEST) Message-ID: <88d49e2b-456c-0f49-d911-f284ecfefeb6@xs4all.nl> Date: Thu, 2 Oct 2025 11:35:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: pgsql: Add support for base64url encoding and decoding Content-Language: en-US To: Daniel Gustafsson , PostgreSQL-development References: From: Erik Rijkers In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Op 9/20/25 om 23:24 schreef Daniel Gustafsson: > Add support for base64url encoding and decoding > > This adds support for base64url encoding and decoding, a base64 > variant which is safe to use in filenames and URLs. base64url > replaces '+' in the base64 alphabet with '-' and '/' with '_', > thus making it safe for URL addresses and file systems. > > Support for base64url was originally suggested by Przemysław Sztoch. > > Author: Florents Tselai > Reviewed-by: Aleksander Alekseev > Reviewed-by: David E. Wheeler > Reviewed-by: Masahiko Sawada > Reviewed-by: Daniel Gustafsson > Reviewed-by: Chao Li (Evan) > Discussion: https://postgr.es/m/70f2b6a8-486a-4fdb-a951-84cef35e22ab@sztoch.pl > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/e1d917182c1953b16b32a39ed2fe38e3d0823047 > > Modified Files > -------------- > doc/src/sgml/func/func-binarystring.sgml | 19 ++++ > src/backend/utils/adt/encode.c | 157 ++++++++++++++++++++++++++----- > src/test/regress/expected/strings.out | 150 +++++++++++++++++++++++++++++ > src/test/regress/sql/strings.sql | 54 +++++++++++ > 4 files changed, 359 insertions(+), 21 deletions(-) Hi, doc/src/sgml/func/func-binarystring.sgml: small typo: The base64url alphabet use should be The base64url alphabet uses Thanks, Erik