2

You can create a domain based on your type. create domain checked_dimensions as dimensions constraint check_size check ( (value).w <= 10 ); Note the parentheses around the keyword value. They look redundant but are required in this case. Then use the type checked_dimensions as your column type


Only top voted, non community-wiki answers of a minimum length are eligible