pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Open _ <opensheart@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: created type not found in create table
Date: Thu, 24 Dec 2020 17:44:32 +0000 (UTC)
Message-ID: <505388281.2608255.1608831872046@mail.yahoo.com> (raw)
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>

 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@sss.pgh.pa.us> wrote:  
 
 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  

view thread (3+ messages)

Message-ID: <505388281.2608255.1608831872046@mail.yahoo.com>
Permalink:  ../505388281.2608255.1608831872046@mail.yahoo.com/
Also on:    postgresql.org/message-id/505388281.2608255.1608831872046@mail.yahoo.com

 · 

reply

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: opensheart@yahoo.com
  Subject: Re: created type not found in create table
  In-Reply-To: <505388281.2608255.1608831872046@mail.yahoo.com>
  References: <1957561924.2643508.1608830429291.ref@mail.yahoo.com> <1957561924.2643508.1608830429291@mail.yahoo.com> <796495.1608830724@sss.pgh.pa.us> <505388281.2608255.1608831872046@mail.yahoo.com>

* 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