Re: Integrating New Data Type

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Integrating New Data Type
Дата
Msg-id BANLkTi=GNaMksxvuvDvW+Qk4_nBq8o3P5A@mail.gmail.com
обсуждение исходный текст
Ответ на Integrating New Data Type  (Nick Raj <nickrajjain@gmail.com>)
Ответы Re: Integrating New Data Type  (Radosław Smogura <rsmogura@softperience.eu>)
Список pgsql-general
Hello

2011/4/5 Nick Raj <nickrajjain@gmail.com>:
> Hi all,
> I have defined a new data type. I have defined in and out function for that
> data type.
> But i want to know how to integrate this data type with postgres (how
> postgres compile my code or know my datatype) ?

you have to register in, out functions, you have to register new type

look to postgresql sources - contrib, there is very simple type citext

http://doxygen.postgresql.org/dir_23dd6926f287bddac2c9dcb7db5b1712.html

http://doxygen.postgresql.org/citext_8c-source.html

Any contrib module has sql file with registrations

Regards

Pavel Stehule


>
> Thanks,
> Nirmesh
>

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

Предыдущее
От: Nick Raj
Дата:
Сообщение: Integrating New Data Type
Следующее
От: pasman pasmański
Дата:
Сообщение: Database "gnu make" equivalent