Re: Re: New data type: uniqueidentifier

Поиск
Список
Период
Сортировка
От Alex Pilosov
Тема Re: Re: New data type: uniqueidentifier
Дата
Msg-id Pine.BSO.4.10.10107031147590.2882-100000@spider.pilosoft.com
обсуждение исходный текст
Ответ на Re: Re: New data type: uniqueidentifier  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Tue, 3 Jul 2001, Peter Eisentraut wrote:


>> Dmitry's stuff contains both datatype (uniqueidentifier), a function to
>> generate a new object of that type (newid), and a set of functions to
>> implement comparison operators for that type.

> It would be much simpler if you stored the unique id in varchar or text.
Peter,

UUIDs have specific rules for comparison of them. Its so much easier to
compare them via a<b than uuid_lt(a,b). If one wanted to make a meaningful
index on uuid value, normal ordering of varchar would not suffice...

-alex




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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Re: New data type: uniqueidentifier
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: JDBC Support - prepared Statements?