Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

GUID/UUID Support


  • From: "Patrick Earl" <patearl(at)patearl(dot)net>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: GUID/UUID Support
  • Date: Tue, 16 Jan 2007 15:47:09 -0700
  • Message-id: <e0762e610701161447q537f7492iee797f82fdb14a64(at)mail(dot)gmail(dot)com>

Greetings all.  I've been poking around the web and trying to track
the status of the GUID/UUID patches.  In the todo list, that item is
not marked as going into 8.3, and I feel this is unfortunate.

Searching google for "postgresql guid -guide" comes up with around
200,000 hits.  It's obviously been a popular topic over time.

There was some discussion about including a generator in the core or
not.  Even a random generator (version 4 UUID) would be great in my
opinion.  The Wikipedia article about UUIDs produces some statistics
about a random source ID that are interesting.

   http://en.wikipedia.org/wiki/UUID

If you generate 2^41 (2'199'023'255'552) true random ids, the
probability of getting a duplicate is 0.000'000'000'000'4.  For
comparison, the page indicates that the probability of getting hit by
a meteorite is 0.000'000'000'06.

If there are qualms about a generator that only produces one type of
IDs, could the database not just provide a way to generate a "version
X" uuid?  Some versions would be implemented later.

One thing that is quite important, to me at least, is to make the GUID
generation functionality cross-platform.  Using a random UUID
technique for an initial implementation would simplify this issue.

Even if the generator is punted to contrib, I would like to see at
least native UUID field support in the next version.

       Patrick



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group