No function matches the given name and argument types. You may need to add explicit type casts. STATEMENT: CREATE TABLE tw_croxdat ( filusu character(3) NOT NULL, codusu character(3) NOT NULL, datref timestamp without time zone NOT NULL, minliv numeric(3,0), userid numeric NOT NULL, CONSTRAINT ck_croxdat_datref CHECK ((datref = (pg_catalog.trunc((datref)::timestamp with time zone))::timestamp without time zone)) );