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

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
Дата
Msg-id CAJ7c6TNh20kD8yR42Qi+o63Du8DfPU3TZaD5vVDxfrL=fYVNPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions  (Aleksander Alekseev <aleksander@tigerdata.com>)
Список pgsql-hackers
Hi,

> > Updated patch attaced.
>
> Perhaps bytea_uuid() should check the UUID format. Consider the
> following example:
>
> SELECT uuid_extract_version('\x019a2f859cedffffb99d9c55044a2563'::bytea::uuid);

On the flip side we allow this:

=# select '019a2f85-9ced-ffff-b99d-9c55044a2563' :: uuid;
                 uuid
--------------------------------------
 019a2f85-9ced-ffff-b99d-9c55044a2563

So I guess the patch is fine.

-- 
Best regards,
Aleksander Alekseev



В списке pgsql-hackers по дате отправления: