Re: Status of Fix Domain Casting TODO

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Status of Fix Domain Casting TODO
Дата
Msg-id 4133.24.211.165.134.1167697840.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на Re: Status of Fix Domain Casting TODO  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Status of Fix Domain Casting TODO  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-hackers
Tom Lane wrote:
> "Jim C. Nasby" <jim@nasby.net> writes:
>> FWIW, I'm running into this trying to create a 'raw' domain that would
>> automagically convert hex strings into actual binary data for storage in
>> a bytea.
>
> I think you've got 0 chance of implementing that as a domain rather than
> an independent type.  Without or without revisions in the casting rules,
> a domain has not got its own I/O functions, and never will.


This might be less of an issue if we allowed such IO functions to be
written in a loadable PL rather than in C.

cheers

andrew



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

Предыдущее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: 8.3 pending patch queue
Следующее
От: Jeremy Drake
Дата:
Сообщение: float8 width_bucket function