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...
Gianvito Pio <pio.gianvito@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?