Problem occur when I have more than one schema. When I create domain for TEST_SCHEMA and set owner, pgadmin add this line: ALTER DOMAIN "PT2" OWNER TO postgres; and I get error. It Should be: ALTER DOMAIN test_schema."PT2" OWNER TO postgres; but schema name isnot consider. sory for my english.