define type_transform to new user defined type - Mailing list pgsql-hackers

From Mohsen SM
Subject define type_transform to new user defined type
Date
Msg-id CAGT6x6d_=QxqGdovy3u1ncBvz5__z-1m_GSQAVRPOWeAA3_awQ@mail.gmail.com
Whole thread Raw
Responses Re: define type_transform to new user defined type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> I want to create new type that
issimilar to varchar.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">its size is
variable.</div><divstyle="font-family:arial,sans-serif;font-size:12.727272033691406px">I use CREATE TYPE
query.</div><divstyle="font-family:arial,sans-serif;font-size:12.727272033691406px">I define for that type this
functions:</div><divstyle="font-family:arial,sans-serif;font-size:12.727272033691406px"> 1-typein</div><div
style="font-family:arial,sans-serif;font-size:12.727272033691406px">2-typeoute</div><div
style="font-family:arial,sans-serif;font-size:12.727272033691406px">3-typemodify_input</div><div
style="font-family:arial,sans-serif;font-size:12.727272033691406px">4-typemodify_output</div><div
style="font-family:arial,sans-serif;font-size:12.727272033691406px">5-type_transform</div><div
style="font-family:arial,sans-serif;font-size:12.727272033691406px">Ican define 1 to 4 functions in CREATE
TYPE</div><divstyle="font-family:arial,sans-serif;font-size:12.727272033691406px">but I can't define type_transform for
thattype. how did I can define type_transform for that type?</div></div> 

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: jsonb and nested hstore
Next
From: Robert Haas
Date:
Subject: Re: Dump pageinspect to 1.2: page_header with pg_lsn datatype