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

Поиск
Список
Период
Сортировка
От Gevik Babakhani
Тема Re: [PATCHES] Patch for UUID datatype (beta)
Дата
Msg-id 1158672955.10757.4.camel@voyager.truesoftware.net
обсуждение исходный текст
Ответ на Re: [PATCHES] Patch for UUID datatype (beta)  ("Jim C. Nasby" <jimn@enterprisedb.com>)
Ответы Re: [PATCHES] Patch for UUID datatype (beta)  ("Jim C. Nasby" <jimn@enterprisedb.com>)
Список pgsql-hackers
> 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.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Getting rid of cmin and cmax
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Release notes