BUG #12819: CREATE TYPE fails within CREATE SCHEMA

From: postgresql(dot)org(at)ciotog(dot)net
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #12819: CREATE TYPE fails within CREATE SCHEMA
Date: 2015-03-02 16:55:54
Message-ID: 20150302165554.2546.2997@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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');
^

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-03-02 17:53:55 Re: BUG #12819: CREATE TYPE fails within CREATE SCHEMA
Previous Message Kevin Grittner 2015-03-02 15:23:36 Re: BUG #12810: database conection drop