Re: GUID for postgreSQL - Mailing list pgsql-general

From Magnus Hagander
Subject Re: GUID for postgreSQL
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE094623@algol.sollentuna.se
Whole thread Raw
In response to GUID for postgreSQL  ("Riaan van der Westhuizen" <riaan@huizensoft.co.za>)
Responses Re: GUID for postgreSQL
Re: GUID for postgreSQL
List pgsql-general
> > This is not really a viable replacement for a GUID ==
> globally unique
> > identifier. Here global means that if I use the application in
> > multiple databases, I'm guaranteed that no two identifiers
> will be the
> > same. Using a sequence will only support uniqueness for a single
> > database.
>
> So, how can two databases, not currently talking to one
> another, guarantee that their GUIDs don't collide? using a
> large randomly generated name space only reduces the chances
> of collision, it doesn't actually guarantee it.

At least on Windows, the GUID is derived in part from the computers
primary MAC address. No, it's not a guarantee, but it's pretty unlikely
:-)

//Magnus

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: GUID for postgreSQL
Next
From: Chris Travers
Date:
Subject: Re: GUID for postgreSQL