Re: guid/uuid datatype

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: guid/uuid datatype
Дата
Msg-id 1169744808.5447.43.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: guid/uuid datatype  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Ответы Re: guid/uuid datatype  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
On Thu, 2007-01-25 at 17:57 +0100, Stefan Kaltenbrunner wrote:
> I thought the consensus was to provide the only atatype initially and
> look into providing the generator functions later or via an external
> project (pgfoundry or contrib/).

I don't think distributing the (portable) generator functions separately
makes a lot of sense. For the generation methods that just depend on
md5() or random(), we may as well include them in the backend if we're
going to include the rest of the UUID stuff.

The MAC-based generator function could also be included in the backend,
actually: it just needs to take an argument of type "macaddr". It would
then be up to the user (and/or various pgfoundry and contrib/ modules)
to find a way to determine the local machine's MAC address, which
presumably can't be done reliably in a portable fashion.

-Neil



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: guid/uuid datatype
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: guid/uuid datatype