Re: [PATCHES] Patch for UUID datatype (beta)

From: Gevik Babakhani <pgdev(at)xs4all(dot)nl>
To: "Jim C(dot) Nasby" <jimn(at)enterprisedb(dot)com>
Cc: mark(at)mark(dot)mielke(dot)cc, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Subject: Re: [PATCHES] Patch for UUID datatype (beta)
Date: 2006-09-19 13:35:55
Message-ID: 1158672955.10757.4.camel@voyager.truesoftware.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> As others have mentioned, using MAC address doesn't remove the
> possibility of a collision.
>
> Maybe a good compromise that would allow a generator function to go into
> the backend would be to combine the current time with a random number.
> That will ensure that you won't get a dupe, so long as your clock never
> runs backwards.

I think that is a reasonable solution. I just wonder if there is a cross
platform way to get the MAC address for all OS we support.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-19 13:37:39 Re: Release notes
Previous Message Alban Hertroys 2006-09-19 13:34:47 Re: vista

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-09-19 13:39:22 Re: Dynamic linking on AIX
Previous Message Albe Laurenz 2006-09-19 13:30:26 Re: Dynamic linking on AIX