Re: Integrating New Data Type

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Nick Raj <nickrajjain(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Integrating New Data Type
Date: 2011-04-05 08:11:02
Message-ID: BANLkTi=GNaMksxvuvDvW+Qk4_nBq8o3P5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2011/4/5 Nick Raj <nickrajjain(at)gmail(dot)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
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pasman pasmański 2011-04-05 09:14:16 Database "gnu make" equivalent
Previous Message Nick Raj 2011-04-05 08:04:46 Integrating New Data Type