pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mohamed Akram <mohd.akram@outlook.com>
To: 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 21:54:00 +0000
Message-ID: <48023522-741C-4239-A908-3153C00DF35D@outlook.com> (raw)
In-Reply-To: <CAKFQuwbEd_2nTuf6oXojAR39ycz8CASy6TfvCBfm_gRtGP6EOw@mail.gmail.com>
References: <20170524204637.27678.60552@wrigleys.postgresql.org>
	<CAKFQuwbEd_2nTuf6oXojAR39ycz8CASy6TfvCBfm_gRtGP6EOw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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.

I know I can convert to base64, but I’d rather not.

On May 25, 2017, at 1:26 AM, David G. Johnston <david.g.johnston@gmail.com<mailto:david.g.johnston@gmail.com>> wrote:

On Wed, May 24, 2017 at 1:46 PM, <mohd.akram@live.com<mailto:mohd.akram@live.com>> wrote:
The following bug has been logged on the website:

Bug reference:      14670
Logged by:          Mohamed Akram
Email address:      mohd.akram@live.com<mailto:mohd.akram@live.com>
PostgreSQL version: 9.6.3
Operating system:   macOS 10.12.5
Description:

As per RFC 4122 - https://tools.ietf.org/html/rfc4122#section-4.3 - name
should not be limited to textual data.

​Since it says should and not must an implementation that restricts the name to be textual is still conforming.

Apart from that supplying an SQL example of what you want to work and what happens when it fails would reduce the possibility of mis-understanding what it is you are saying.​

David J.




view thread (5+ messages)  latest in thread

Message-ID: <48023522-741C-4239-A908-3153C00DF35D@outlook.com>
Permalink:  ../48023522-741C-4239-A908-3153C00DF35D@outlook.com/
Also on:    postgresql.org/message-id/48023522-741C-4239-A908-3153C00DF35D@outlook.com

 · 

reply

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: mohd.akram@outlook.com
  Subject: Re: BUG #14670: uuid_generate_v3 and uuid_generate_v5 do not support binary names
  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>

* 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