Basically I want to put a CHECK for all items of an array to be positive, something like this:
CREATE TABLE mField(
fields int[] CHECK( items_in_array(>0))
);
so that all items in the fields are positive only. Is there a way to do this in postgres?