CreateTable --> schema not found
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:
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
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 PutzbrunnTel. ++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