CREATE TYPE inventory_item AS ( name text, supplier_id integer, price numeric
);
but I'd also like to have a type with an extra column for certain functions
CREATE TYPE inventory_item2 AS ( name text, supplier_id integer, price numeric,
sizeinteger
);
but it would be handy if I could reuse inventory_item instead of having to retype the whole lot. I can't work out or find the right syntax, can anyone show me how? Any help would be much appreciated.