Re: What are the characteristics of a good user-defined data type?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: What are the characteristics of a good user-defined data type? |
| Дата | |
| Msg-id | 29852.1149690991@sss.pgh.pa.us обсуждение |
| Ответ на | What are the characteristics of a good user-defined data type? ("Tim Hart" <tjhart@mac.com>) |
| Ответы |
Re: What are the characteristics of a good user-defined data type?
|
| Список | pgsql-general |
"Tim Hart" <tjhart@mac.com> writes:
> I've reviewed the PostgreSQL documentation on user defined data types. It
> seems that data types that can't be ordered or compared for equality would
> be bad candidates. After all, if a data type can't be indexed or used in a
> where clause, what value does a custom type bring over a binary or textual
> representation?
Well, the possibility of error-checking for bad values might alone
justify a custom type, depending on what you're doing. A type with no
support beyond the required I/O functions could offer that.
But it's kinda hard to imagine a datatype in which there is no
meaningful way to define equality ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера