Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDf5N-00028U-KS for pgsql-bugs@arkaria.postgresql.org; Wed, 24 May 2017 22:48:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dDf5M-0005q6-PX for pgsql-bugs@arkaria.postgresql.org; Wed, 24 May 2017 22:48:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDf5M-0005pw-Ae for pgsql-bugs@postgresql.org; Wed, 24 May 2017 22:48:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDf5F-0000SG-5b for pgsql-bugs@postgresql.org; Wed, 24 May 2017 22:48:55 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4OMmYb2009953; Wed, 24 May 2017 18:48:34 -0400 From: Tom Lane To: Mohamed Akram cc: "pgsql-bugs@postgresql.org" 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> <48023522-741C-4239-A908-3153C00DF35D@outlook.com> Comments: In-reply-to Mohamed Akram message dated "Wed, 24 May 2017 21:54:00 -0000" Date: Wed, 24 May 2017 18:48:33 -0400 Message-ID: <15138.1495666113@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Mohamed Akram 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