On Tue, Oct 28, 2025 at 9:41 AM Dagfinn Ilmari Mannsåker <[email protected]> wrote: > > Dagfinn Ilmari Mannsåker <[email protected]> writes: > > > Jelte Fennema-Nio <[email protected]> writes: > > > >> Then combining that with UUID <-> bytea casting (which also > >> seems totally reasonable functionality to me), would give you the > >> functionality (but not the defaults you want). > > > > +1 for adding casts. > > Here's a patch for that. I'm not 100% confident about the error code > for invalid length, but that was the closest one I could find in > errcodes.txt.
Thank you for the patch. I'll review it. > I might do the base32hex encode/decode later, unless someone else beats > me to it. Andrey has shared his patch for base32hex support before[1]. While it needs to be updated, it seems to implement sufficient function. Regards, [1] https://www.postgresql.org/message-id/6F76FA61-E2DC-44EF-9504-889D9BDB4EBD%40yandex-team.ru -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
