From: Tom Lane <tgl@sss.pgh.pa.us>
To: Open _ <opensheart@yahoo.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: created type not found in create table
Date: Thu, 24 Dec 2020 12:25:24 -0500
Message-ID: <796495.1608830724@sss.pgh.pa.us> (raw)
In-Reply-To: <1957561924.2643508.1608830429291@mail.yahoo.com>
References: <1957561924.2643508.1608830429291.ref@mail.yahoo.com>
<1957561924.2643508.1608830429291@mail.yahoo.com>
Open _ <opensheart@yahoo.com> writes:
> CREATE TYPE staffadmin.staff_roll
> as ENUM ('Not yet defined', 'Everything', 'Sys Admin', 'Developer', 'DBA', 'Security', 'Art & Apperance', 'Support', 'Manager') ;
> CREATE TYPE
> ...
> psql:/tmp/psql_tmp.5133.sql:16: ERROR: type "staffadmin.staff_role" does not exist
> LINE 9: role staffadmin.staff_role NOT null ,
> ^
Uh, you didn't spell it that way before.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, opensheart@yahoo.com
Subject: Re: created type not found in create table
In-Reply-To: <796495.1608830724@sss.pgh.pa.us>
References: <1957561924.2643508.1608830429291.ref@mail.yahoo.com> <1957561924.2643508.1608830429291@mail.yahoo.com> <796495.1608830724@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox