CreateTable --> schema not found

Started by Josef Springerover 20 years ago3 messagesgeneral
Jump to latest
#1Josef Springer
Josef.Springer@JOOPS.COM

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
* If i create the table OfficeTalk.absent .... >>> schema not found
* Creating the same table in schema pg_template_1 works fine.

I could not found any solution. Can anybod help me ?
--

Best Regards,
Josef Springer

<cid:part1.03030007.05000903@netscape.com> -- the software company --

Orlando-di-Lasso Str. 2
D-85640 Putzbrunn

Tel. ++49(0)89 600 6920
Fax ++49(0)89 600 69220
mailto Josef.Springer@joops.com <mailto:Josef.Springer@joops.com>
Website http://www.joops.com

Attachments:

Sent>3723image/jpeg; name="Sent>3723"Download
#2Richard Huxton
dev@archonet.com
In reply to: Josef Springer (#1)
Re: CreateTable --> schema not found

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

#3Ropel
ropel@ropel.it
In reply to: Josef Springer (#1)
Re: CreateTable --> schema not found

I think it's because of uppercase letters: if you don't quote ... create
table "/OfficeTalk.absent" .... , postgresql will lowercase everything
regards

/Josef Springer wrote:

Show quoted text

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/
* If i create the table /OfficeTalk.absent/ .... >>> * schema not
found*
* Creating the same table in schema /pg_template_1/ works fine.

I could not found any solution. Can anybod help me ?
--

Best Regards,
Josef Springer

-- *the software company* --

Orlando-di-Lasso Str. 2
D-85640 Putzbrunn

Tel. ++49(0)89 600 6920
Fax ++49(0)89 600 69220
mailto Josef.Springer@joops.com <mailto:Josef.Springer@joops.com>
Website http://www.joops.com