Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksUMl-0005mC-Fq for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 17:25:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ksUMj-00064a-7S for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 17:25:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksUMi-00064T-Vy for pgsql-general@lists.postgresql.org; Thu, 24 Dec 2020 17:25:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksUMf-0003Fb-56 for pgsql-general@lists.postgresql.org; Thu, 24 Dec 2020 17:25:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0BOHPOKc796496; Thu, 24 Dec 2020 12:25:24 -0500 From: Tom Lane To: Open _ cc: "pgsql-general@lists.postgresql.org" Subject: Re: created type not found in create table In-reply-to: <1957561924.2643508.1608830429291@mail.yahoo.com> References: <1957561924.2643508.1608830429291.ref@mail.yahoo.com> <1957561924.2643508.1608830429291@mail.yahoo.com> Comments: In-reply-to Open _ message dated "Thu, 24 Dec 2020 17:20:29 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <796494.1608830724.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Dec 2020 12:25:24 -0500 Message-ID: <796495.1608830724@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Open _ writes: > =C2=A0=C2=A0 CREATE TYPE staffadmin.staff_roll > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 as ENUM ('Not yet defined', 'Everyt= hing', 'Sys Admin', 'Developer', 'DBA', 'Security', 'Art & Apperance', 'Su= pport', 'Manager') ; > =C2=A0=C2=A0 CREATE TYPE > ... > =C2=A0=C2=A0 psql:/tmp/psql_tmp.5133.sql:16: ERROR:=C2=A0 type "staffadm= in.staff_role" does not exist > =C2=A0=C2=A0 LINE 9:=C2=A0=C2=A0 role=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 staffadmin.staff_role=C2=A0=C2=A0 NOT null , > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ^ Uh, you didn't spell it that way before. regards, tom lane