Re: GUID for postgreSQL
От | Magnus Hagander |
---|---|
Тема | Re: GUID for postgreSQL |
Дата | |
Msg-id | 6BCB9D8A16AC4241919521715F4D8BCE094623@algol.sollentuna.se обсуждение исходный текст |
Ответ на | GUID for postgreSQL ("Riaan van der Westhuizen" <riaan@huizensoft.co.za>) |
Ответы |
Re: GUID for postgreSQL
Re: GUID for postgreSQL |
Список | 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 по дате отправления: