From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mohamed Akram <mohd.akram@outlook.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14670: uuid_generate_v3 and uuid_generate_v5 do not support binary names
Date: Wed, 24 May 2017 18:48:33 -0400
Message-ID: <15138.1495666113@sss.pgh.pa.us> (raw)
In-Reply-To: <48023522-741C-4239-A908-3153C00DF35D@outlook.com>
References: <20170524204637.27678.60552@wrigleys.postgresql.org>
<CAKFQuwbEd_2nTuf6oXojAR39ycz8CASy6TfvCBfm_gRtGP6EOw@mail.gmail.com>
<48023522-741C-4239-A908-3153C00DF35D@outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Mohamed Akram <mohd.akram@outlook.com> writes:
> That’s true, I guess it’s more of an enhancement but I couldn’t find an option for that in the bug form. However, even the sample C code in the RFC takes a void* argument for name.
> My use case is generating unique identifiers for images, similar to:
> select uuid_generate_v5(namespace, data);
> where data is a bytea column.
A little experimentation suggests that we might be able to add a function
uuid_generate_v3(uuid, bytea) alongside the uuid_generate_v3(uuid, text)
one without creating serious problems --- in ambiguous situations, it
seems the text one would be preferred, so we'd not break existing queries.
I have no interest in preparing such a patch myself, though.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mohd.akram@outlook.com
Subject: Re: BUG #14670: uuid_generate_v3 and uuid_generate_v5 do not support binary names
In-Reply-To: <15138.1495666113@sss.pgh.pa.us>
References: <20170524204637.27678.60552@wrigleys.postgresql.org> <CAKFQuwbEd_2nTuf6oXojAR39ycz8CASy6TfvCBfm_gRtGP6EOw@mail.gmail.com> <48023522-741C-4239-A908-3153C00DF35D@outlook.com> <15138.1495666113@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox