Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions

From: Chengxi Sun <chengxisun92(at)gmail(dot)com>
To: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
Date: 2026-03-19 14:14:49
Message-ID: CAMvSjCRE20_XHyd-chVnx+Shq_z6h=uPw8u133m1_hsWXW5yAQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
> This code checks if the remaining bits of the input data are all zero.
> IIUC we don't have a similar check for base64 and base64url. For
> instance, the following input data is accepted:
>
> =# select decode('AB', 'base64');
> decode
> --------
> \x00
> (1 row)
> """
>

Thanks for the clarification, that makes sense.

Best regards,

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniil Davydov 2026-03-19 14:28:57 Re: POC: Parallel processing of indexes in autovacuum
Previous Message Shinya Kato 2026-03-19 13:58:18 Re: pg_stat_replication.*_lag sometimes shows NULL during active replication