HN2new | past | comments | ask | show | jobs | submitlogin

Check DOMAINs. They are derived data types that take a base type and add, optionally, one or more CHECK constraints to them.

They are not perfect, but probably something close to what you are looking for.



Thanks for this (!), I didn't know PG had support for data domains, wow.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: