Domains just allow me to redefine base types, including some restrictions. I just want to define a my own type and then to define some new types that inherit from the first one. I hope it's clear now...
2009/6/5 Tom Lane <t...@sss.pgh.pa.us> > Gianvito Pio <pio.gianv...@gmail.com> writes: > > I just want to ask you if it's possible to define sub types in PostgreSQL > > (Type inheritance). I found that table inheritance is possible...but I'd > > like to do it on types. > > It's fairly unclear what your actual requirements are here, but perhaps > domains would do the job? > > regards, tom lane >