The following bug has been logged on the website:
Bug reference: 12819
Logged by: Chris Craig
Email address: postgresql(dot)org(at)ciotog(dot)net
PostgreSQL version: 9.3.5
Operating system: Ubuntu 14.04.1 LTS
Description:
When creating objects within a CREATE SCHEMA definition, "CREATE TYPE" fails
with 'ERROR: syntax error at or near "TYPE"'.
Eg:
postgres=# CREATE SCHEMA foo
postgres-# CREATE TYPE foo.bar AS ENUM('ONE','TWO','THREE');
ERROR: syntax error at or near "TYPE"
LINE 2: CREATE TYPE foo.bar AS ENUM('ONE','TWO','THREE');
^