Say I have created some user-defined types in the DB,
i.e. CREATE TYPE abc ...
CREATE TYPE abc ...
Is it then possible to determine if the user-defined type exists
You can look in the pg_type table:
select exists (select 1 from pg_type where typname = 'abc');
If that is true then abc exists.
abc