Newsgroups: comp.databases.ingres
From: "Roy Hann" <specia...@processed.almost.meat>
Date: Fri, 9 May 2008 20:44:07 +0100
Local: Fri, May 9 2008 3:44 pm
Subject: Re: [Info-Ingres] Using UUIDs
news:mailman.215.1210358563.2607.info-ingres@kettleriverconsulting.com...
> 2008/5/9 Roy Hann <specia...@processed.almost.meat>: I was hoping to sort on the time stamp components to recover the order in >> I am looking at using uuid_create() to generate UUIDs. The SQL > They can, though I'm not sure why you'd want to. which a set of rows were originally created. > I have come across a Since I posted this question a careful reading of > couple of bugs in early 2.6 days with UUIDs, however since they were > fixed (may 2005) the format is as described. >> I do know UUIDs come in different "versions", including hashed and >> What version is Ingres going to give me? http://www.ietf.org/rfc/rfc4122.txt tells me that UUIDs returned by uuid_to_char() that look like these below, generated using II 9.1.0 (int.w32/119): bb15cc31-fcc9-4c6e-ad21-7349e11f5e14 are Version 4 (because the high-order 4 bits of the so-called If these are version 4 UUIDs then every other bit is supposed to be randomly >> Is there any sensible interpretation of the output of uuid_to_char()? I did. The id_win version is pretty much commented out. But even more > I'd suggest taking a look at the source > (http://code.ingres.com/ingres/main/src/cl/clf/id_unix/iduuid.c or > http://code.ingres.com/ingres/main/src/cl/clf/id_win/iduuid.c) It's > pretty heavily commented mysteriously, the id_unix version does all kinds of whirling and clanking to produce a UUID based on time and node, and sets the version number using #ifdef BYTE_SWAP neither of which is 4. So I wonder, is the source we see the source for Roy You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||