From: | Open _ <opensheart(at)yahoo(dot)com> |
---|---|
To: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: created type not found in create table |
Date: | 2020-12-24 17:44:32 |
Message-ID: | 505388281.2608255.1608831872046@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
oh, duh.. works now... Thanks for the second pair of eyes.
I thought I had ruled that out by doing a search on the type name and making sure it was the same all places... (which is a long ingrained habit). Must have searched on one of the other type names.
This is my first use of such a type in a postgres table, thought it was something I didn't understand yet.
On Thursday, December 24, 2020, 12:25:29 PM EST, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
Open _ <opensheart(at)yahoo(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim Gündüz | 2020-12-24 20:14:31 | Re: pg_upgrade from 12 to 13 failes with plpython2 |
Previous Message | Tom Lane | 2020-12-24 17:25:24 | Re: created type not found in create table |