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.96) (envelope-from ) id 1vLxyD-00FEt1-0D for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 06:16:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLxyB-00HO2Z-23 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 06:16:39 +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.96) (envelope-from ) id 1vLxVZ-00HFtv-2V for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 05:47:06 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vLxVX-000UE0-19 for pgsql-hackers@postgresql.org; Thu, 20 Nov 2025 05:47:05 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-595825c8eb3so412119e87.0 for ; Wed, 19 Nov 2025 21:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763617620; x=1764222420; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=0pXs9tiRxi+mGtCTpDqzF2IrdePLwpuBeOC6DBNQ/hg=; b=ZD1mHPa8ffKo8zY8soD/DgUcuyGm+dxG2T0BDBUg/QyfK0JGlmUdYaF/NjDOvPI5Lo NmAWE1GeALXS6VK5WKnh9pBBBFo2jVYFb9oAGIU2eR8JuJ6Ltw9C1ycK3E1Sel0Tgpsq /2eElwMiD/GvMSE+H5Xb0RCvG4294oY9U6XvpkWQ/GpGFslCW0xmK9DUrLrBrakvq25z uNzlvH9+/TcLgDhK0MdlZ1wXvo6Z/XuIM4R49pigf1FFkciXwzUf3wlZfHo7LTRrcCyA o1MdEk4g+VqK6HH0V8TqBTQUhJjp0jiyRBZOE1lZ2YBnWp9el6nJ4pGYNOqemHUcM2gy 4YiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763617620; x=1764222420; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0pXs9tiRxi+mGtCTpDqzF2IrdePLwpuBeOC6DBNQ/hg=; b=BM4/ZyRZhVegxxvjmYX0aoXVlRfA6aenSHahHQD7c9Je4Y2s84cANsz1FDFfvrTrKk H1ktgzcZ+7eOHQQ52hbpan4ThcJzH2ZZUxKLLttQbaFqxDb1u0K6i37EEAftEkEe7mgu uCbxJACtTggZsJ3suirb+db6ioBx8e5RQbnVLKLJuxVNgJv2v8sGTZYb/wzgxlEtXGMV zwSj7L37GyDI/pbzg7FkriA/RtTLKYhXpelHoVZ9XYpXhgSRDAhkCEd8CYu/5ML0U95U veUxBMV0U8rm/M41ufJBNGJHbCx1BIJSBuI59Dk4mQ7rl7oY6pi9JLpeqAW9gwCjlGqM o0hQ== X-Forwarded-Encrypted: i=1; AJvYcCUci9rF8KyRWB9K4bRaY/ayypZ1Dr/Yuc9vNwGTjNQW3v2WRls3J/XKLJp1QY7wGufKRqSCV2sKgSp8wLJ9@postgresql.org X-Gm-Message-State: AOJu0YxQH6wV1KgVlvMVf+GSQQYBtUu4eqV3SkZJhQv8w+u4aNAx/X40 gvc50iRqVl4P36kQJiG4eToX8DifWvMppwM7St67VwSV+D+AKxOnIFTngG96oW70dzg= X-Gm-Gg: ASbGncsFOgX6ZhHz0Y49aJlF2Eqf6Sjl8hHjt7zbURhmu/4OxTI93TIOhsraouFZikm WNqNNvXHxJ7tmTSTG6+jcvSJ4v+pIlZZDZHsmxSusVWJov0aKOwmsuizWSUqCU6Kdua0abSzhjN HUDvyL1+fkctVWwySPGyrJKw+JsfjvvYdi6jnkQuiwDT7+ZgOZU0rmObix+a2tVR//a/uV0etHA r+MT0BhA2cVIR2KYFNQsU0EFKxn3dhuT9Z1MGFHp4YiesbhckKSJT4Ca0M1AJaMmxI48A4kWKNO t+RY1yENVG0BASc2LOK5q6m+Xcd50wOJkVwa5eWzwvsb6/c1MArbAf38438mOZCF/HZpdmXljAW B9sy+ovcYYNiZ70rV9euQigIThhsf4HYPFbYXBason4J6zBX6yC2xWRQekwEmoeIC0W3Gx1j8FJ 8= X-Google-Smtp-Source: AGHT+IECAAiajMH07wqhcUVI22UA5+JevmwKn+jbVXSj/Phq+RE5iJLFtmW7NCbP4K5hAvp8D2wsow== X-Received: by 2002:a05:6512:10cc:b0:595:831d:22fa with SMTP id 2adb3069b0e04-5969e2b4d0amr535252e87.7.1763617619973; Wed, 19 Nov 2025 21:46:59 -0800 (PST) Received: from [10.6.2.16] ([109.195.36.5]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5969db756d3sm417363e87.14.2025.11.19.21.46.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Nov 2025 21:46:58 -0800 (PST) Content-Type: multipart/alternative; boundary="------------AqBVaIDAPraxh0UB6wak0M8M" Message-ID: Date: Thu, 20 Nov 2025 12:46:43 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions To: Andrey Borodin , Masahiko Sawada Cc: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , Jelte Fennema-Nio , Sergey Prokhorenko , pgsql-hackers References: <1791665551.452444.1761209220211.ref@mail.yahoo.com> <18022523-0F8F-4C07-AFF5-57DC9086D78E@yandex-team.ru> <1895971769.8343.1761240853939@mail.yahoo.com> <574624399.175025.1761290201491@mail.yahoo.com> <953203149.383019.1761345585325@mail.yahoo.com> <6F76FA61-E2DC-44EF-9504-889D9BDB4EBD@yandex-team.ru> <1154454839.957923.1761604611424@mail.yahoo.com> <87ldkv8cog.fsf@wibble.ilmari.org> <87ikfz7zcu.fsf@wibble.ilmari.org> <9CB824CC-70DC-4165-AC6A-9664F47209EE@yandex-team.ru> Content-Language: ru From: =?UTF-8?B?0JjQu9GM0Y8g0KfQtdGA0LTQsNC60L7Qsg==?= In-Reply-To: <9CB824CC-70DC-4165-AC6A-9664F47209EE@yandex-team.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------AqBVaIDAPraxh0UB6wak0M8M Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 31.10.2025 2:10, Masahiko Sawada wrote: > --- > I think we should update the documentation in the uuid section about > casting data between bytea and uuid. For references, we have a similar > description for bytea and integer[1]. Greetings! I briefly tested the patched version of v3. The implemented functionality works correctly. --- You can also add a case with the error from v3-0002 "invalid base32hex end sequence" to the tests : +        ereport(ERROR, +                (errcode(ERRCODE_INVALID_PARAMETER_VALUE), +                 errmsg("invalid base32hex end sequence"), +                 errhint("Input data has non-zero padding bits."))); --- I agree with Masahiko Sawada; information about conversions should be added to the documentation. -- Best regards, Ilya Cherdakov, PostgresPro --------------AqBVaIDAPraxh0UB6wak0M8M Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
31.10.2025 2:10, Masahiko Sawada wrote:
---
I think we should update the documentation in the uuid section about
casting data between bytea and uuid. For references, we have a similar
description for bytea and integer[1].
Greetings!
I briefly tested the patched version of v3. The implemented 
functionality works correctly.

---
You can also add a case with the error from v3-0002 
"invalid base32hex end sequence" to the tests :

+        ereport(ERROR,
+                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+                 errmsg("invalid base32hex end sequence"),
+                 errhint("Input data has non-zero padding bits.")));

---
I agree with Masahiko Sawada; information about conversions
should be added to the documentation.

-- 
Best regards,
Ilya Cherdakov, PostgresPro --------------AqBVaIDAPraxh0UB6wak0M8M--