Re: guid/uuid datatype

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: guid/uuid datatype
Дата
Msg-id 8980.1169265657@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: guid/uuid datatype  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: guid/uuid datatype  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: guid/uuid datatype  (Gevik Babakhani <pgdev@xs4all.nl>)
Re: guid/uuid datatype  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
> Peter Eisentraut wrote:
>> When has the API for data types ever changed?

> The API doesn't change, but the way to do things inside the type
> functions does changes sometimes.

We've always done our best not to break user-defined datatypes without
need.  uuid doesn't seem to need any hooks into the core system that
would make it any more likely to break than anything else.

Per previous discussion, the main problem with a uuid type is the
new-uuid generator function, which tends to involve a bunch of
not-so-portable assumptions and code.  If we accept a uuid type in
either core or contrib, all of a sudden those portability issues are
our problem.  I'd rather not deal with that.

I'd be willing to accept a core uuid type sans generator function,
but is that really all that useful?

            regards, tom lane

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

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