Unix Technical Forum

missing schemas from template1

This is a discussion on missing schemas from template1 within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, Our provider tries to install postgresql 8.0.0-rc1 on a s390 machine (suse 7 or like). They compiled the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 01:12 AM
drdani@mazsola.iit.uni-miskolc.hu
 
Posts: n/a
Default missing schemas from template1

Hi,

Our provider tries to install postgresql 8.0.0-rc1 on a s390 machine
(suse 7 or like). They compiled the source and installed it without
problems, and initdb looks to worked well too. But there is not any
schema in template1 database, so we can't really start our work.

Is it a known problem, is there a solution for it?

Daniel

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 01:12 AM
Tom Lane
 
Posts: n/a
Default Re: missing schemas from template1

drdani@mazsola.iit.uni-miskolc.hu writes:
> Our provider tries to install postgresql 8.0.0-rc1 on a s390 machine
> (suse 7 or like). They compiled the source and installed it without
> problems, and initdb looks to worked well too. But there is not any
> schema in template1 database, so we can't really start our work.


Uh ... what schemas are you expecting to find there?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 01:12 AM
drdani@mazsola.iit.uni-miskolc.hu
 
Posts: n/a
Default Re: missing schemas from template1

On Thu, 16 Dec 2004, Tom Lane wrote:

> Uh ... what schemas are you expecting to find there?


In normal cases there are:

information_schema
pg_catalog
pg_temp1
pg_toast
public

schemas. Without them the database is not really usefull. When I
create the first database (as copy of template1 of course) it misses
those schemas. I don't know what is the normal way to create them if
`initdb' didn't do it (it just said it did...)

Daniel

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 01:12 AM
Tom Lane
 
Posts: n/a
Default Re: missing schemas from template1

drdani@mazsola.iit.uni-miskolc.hu writes:
> On Thu, 16 Dec 2004, Tom Lane wrote:
>> Uh ... what schemas are you expecting to find there?


> In normal cases there are:


> information_schema
> pg_catalog
> pg_temp1
> pg_toast
> public


> schemas. Without them the database is not really usefull. When I
> create the first database (as copy of template1 of course) it misses
> those schemas. I don't know what is the normal way to create them if
> `initdb' didn't do it (it just said it did...)


It's difficult to believe that those aren't there, or that the database
would appear to work if they were not. Are you able to do, say, "select
* from pg_namespace"?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 01:12 AM
Michael Fuhr
 
Posts: n/a
Default Re: missing schemas from template1

On Thu, Dec 16, 2004 at 03:38:06PM +0100, drdani@mazsola.iit.uni-miskolc.hu wrote:

> Our provider tries to install postgresql 8.0.0-rc1 on a s390 machine
> (suse 7 or like). They compiled the source and installed it without
> problems, and initdb looks to worked well too. But there is not any
> schema in template1 database, so we can't really start our work.


How are you determining that there are no schemas? Might you be
using an old client that isn't schema-aware? Schemas were added
in 7.3, as I recall.

This is a different issue, but you aren't trying to work in template1,
are you? Template1 is the skeleton used when creating new databases --
you should be using CREATE DATABASE or createdb to create the database
you'll be working in.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 01:12 AM
drdani@mazsola.iit.uni-miskolc.hu
 
Posts: n/a
Default Re: missing schemas from template1

On Thu, 16 Dec 2004, Michael Fuhr wrote:

> How are you determining that there are no schemas? Might you be


Connecting with pgadmin3 to template1.

> This is a different issue, but you aren't trying to work in template1,
> are you? Template1 is the skeleton used when creating new databases --
> you should be using CREATE DATABASE or createdb to create the database
> you'll be working in.


To create a new database (my one to work with) I have to connect to
template1. Creating a new database works wery well, it copies
template1 so the new db hasn't got any schema exactly as template1...

So the problem is that initdb has created an incomplete template1 so I
can't start my work. I don't know the reason (output of initdb
--mailed to me by the provider-- looks OK) and my problem is that I
don't know the solution... the biggest problem is that provider dosn't
know either:-(

I tried to dump out missing schemas from an other installation and
aply the dumps on the incorrect database but it failed.

Daniel

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-10-2008, 01:12 AM
drdani@mazsola.iit.uni-miskolc.hu
 
Posts: n/a
Default Re: missing schemas from template1

On Thu, 16 Dec 2004, Tom Lane wrote:

> It's difficult to believe that those aren't there, or that the database


I think it is an initdb problem.

> would appear to work if they were not.


The databse is not useable, so that's right.

> Are you able to do, say, "select
> * from pg_namespace"?


The system is closed, I have no access to it from home, so I can't try
it right now. The answer is surely no.

Daniel

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-10-2008, 01:12 AM
Scott Marlowe
 
Posts: n/a
Default Re: missing schemas from template1

On Thu, 2004-12-16 at 11:59, Tom Lane wrote:
> drdani@mazsola.iit.uni-miskolc.hu writes:
> > On Thu, 16 Dec 2004, Tom Lane wrote:
> >> It's difficult to believe that those aren't there, or that the database
> >> would appear to work if they were not.

>
> > The databse is not useable, so that's right.

>
> >> Are you able to do, say, "select
> >> * from pg_namespace"?

>
> > The system is closed, I have no access to it from home, so I can't try
> > it right now. The answer is surely no.

>
> If not, why are you so certain that the problem is with missing schemas
> and not something else? I would think it would be impossible to do any
> investigation at all, if the initial catalog contents are messed up that
> badly.


Maybe the hosting company is running 7.2 or something like that?

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-10-2008, 01:12 AM
Tom Lane
 
Posts: n/a
Default Re: missing schemas from template1

drdani@mazsola.iit.uni-miskolc.hu writes:
> On Thu, 16 Dec 2004, Tom Lane wrote:
>> It's difficult to believe that those aren't there, or that the database
>> would appear to work if they were not.


> The databse is not useable, so that's right.


>> Are you able to do, say, "select
>> * from pg_namespace"?


> The system is closed, I have no access to it from home, so I can't try
> it right now. The answer is surely no.


If not, why are you so certain that the problem is with missing schemas
and not something else? I would think it would be impossible to do any
investigation at all, if the initial catalog contents are messed up that
badly.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-10-2008, 01:12 AM
Tom Lane
 
Posts: n/a
Default Re: missing schemas from template1

drdani@mazsola.iit.uni-miskolc.hu writes:
> On Thu, 16 Dec 2004, Michael Fuhr wrote:
>> How are you determining that there are no schemas? Might you be


> Connecting with pgadmin3 to template1.


Perhaps you need a newer version of PGAdmin3.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com