View Single Post

   
  #2 (permalink)  
Old 04-12-2008, 05:47 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: [PATCHES] Patch for UUID datatype (beta)

On Mon, Sep 18, 2006 at 05:29:34PM +0200, Harald Armin Massa wrote:
> I would really like PostgreSQL to include an uuid-generation function
> crafted along the recommendations in rfc4122 or ISO/IEC 9834-8; so those
> UUIDs have a "ISO/IEC-defined uniqueness" or at least a "ISO/IEC-defined
> extreme likelyness to be unique"


The code to get things like the MAC address is going to be a pile of
very OS specific code, which I really don't think is in the realm of
code postgresql wants to maintain. The easier and better solution is to
include a module in contrib (at best) that calls some standard
cross-platform library to do the job.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFDsESIB7bNG8LQkwRAmcCAJwKa7Jb07fT3lzdp1aRJ8 Eym+lFmACcDF3K
RoqOIeIFu8v+4XzCBNbgTaM=
=WMbU
-----END PGP SIGNATURE-----

Reply With Quote