Re: User defined I/O conversion casts

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: User defined I/O conversion casts
Дата
Msg-id 48B7E294.4030603@sigaev.ru
обсуждение исходный текст
Ответ на User defined I/O conversion casts  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
> Since 8.3, the system provides automatic I/O conversion casts between 
> the built-in string types and other types, but there's currently no way 
> for a user to declare additional casts using the I/O functions. You can 
> always create a simple SQL function to do that, but it seems like we 
> should provide a direct interface for that. I propose the syntax:
> 
> CREATE CAST (<source> AS <target>) WITH INOUT [AS IMPLICIT | AS ASSIGNMENT]

> Anyone else think this is a good idea? Thoughts on the implementation?

Agree, that task causes too often for me. Although using separate boolean column  looks more preferable than special
valuefor OID.
 

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: User defined I/O conversion casts
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: code coverage patch