Re: CreateTable --> schema not found - Mailing list pgsql-general

From Richard Huxton
Subject Re: CreateTable --> schema not found
Date
Msg-id 42D4D141.9070000@archonet.com
Whole thread Raw
In response to CreateTable --> schema not found  (Josef Springer <Josef.Springer@JOOPS.COM>)
List pgsql-general
Josef Springer wrote:
>   Hi,
>
> sorry, i am a PostgesSQL beginner:
>
>     * I  started the pgadmin tool as superuser.
>     * Created the database /OfficeTalk/
>     * Created the schema /OfficeTalk/ with same permissions as the template
>       /pg_template_1/

Are you sure pg_template_1 isn't a database?

>     * If i create the table /OfficeTalk.absent/ .... >>> * schema not found*
>     * Creating the same table in schema /pg_template_1/ works fine.

If not, I'd suspect quoting issues. Fire up psql and do a \dn to see
what schemas are actually in your database - if they were quoted when
they were created they'll maintain their case, otherwise they'll be
lower-case.

Once you create something with mixed-case you'll always need to
reference it quoted, e.g.

CREATE TABLE "OfficeTalk".absent (
  a int4,
  ...
);

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Ropel
Date:
Subject: Re: CreateTable --> schema not found
Next
From: Dawid Kuroczko
Date:
Subject: Re: Converting MySQL tinyint to PostgreSQL