CREATE TYPE price AS ("amount" float, "currency" char(3));
CREATE TYPE vat AS ("base" float, "amount" float, "rate" smallint);
CREATE TABLE sandbox.test (
id serial,
"price" price,
"vat" vat
);
INSERT INTO sandbox.test (price,vat) SELECT ROW(1.254, 'EUR')::price, ROW(100,21,21)::vat