Re: define type_transform to new user defined type
| От | Tom Lane |
|---|---|
| Тема | Re: define type_transform to new user defined type |
| Дата | |
| Msg-id | 31580.1393362706@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | define type_transform to new user defined type (Mohsen SM <mohsensoodkhah@gmail.com>) |
| Ответы |
Re: define type_transform to new user defined type
|
| Список | pgsql-hackers |
Mohsen SM <mohsensoodkhah@gmail.com> writes:
> I want to create new type that is similar to varchar.
> its size is variable.
> I use CREATE TYPE query.
> I define for that type this functions:
> 1-typein
> 2-typeoute
> 3-typemodify_input
> 4-typemodify_output
> 5-type_transform
> I can define 1 to 4 functions in CREATE TYPE
> but I can't define type_transform for that type. how did I can define
> type_transform for that type?
There's no such thing as a "type transform". There are transforms
associated with functions ... unfortunately, there's not currently
any provision for defining those at the SQL level. You could poke
an entry into pg_proc.protransform if you're desperate enough.
regards, tom lane
В списке pgsql-hackers по дате отправления: