Re: "template1 does not exist" while installing 8.0RC5 on RH9

Lists: pgsql-admin
From: "Rick Schumeyer" <rschumeyer(at)ieee(dot)org>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: "template1 does not exist" while installing 8.0RC5 on RH9
Date: 2005-01-17 20:31:38
Message-ID: 005a01c4fcd3$8ba79050$0200a8c0@dell8200
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

I'm trying to install 8.0RC5 from source on a RedHat9 system.

I'm following the directions from the INSTALL file.

Everything looks good, even the "initdb" command, which reports

everything as ok.

But the "createdb test" command fails, with error

'database "template1" does not exist'

I'm not sure where I went wrong.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rick Schumeyer" <rschumeyer(at)ieee(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: "template1 does not exist" while installing 8.0RC5 on RH9
Date: 2005-01-17 21:11:44
Message-ID: 10576.1105996304@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

"Rick Schumeyer" <rschumeyer(at)ieee(dot)org> writes:
> Everything looks good, even the "initdb" command, which reports
> everything as ok.

> But the "createdb test" command fails, with error
> 'database "template1" does not exist'

initdb executes half a dozen reconnections to template1 after the
initial bootstrap, so it's real hard to see how a broken pg_database
entry wouldn't have caused a failure during initdb. I'm wondering
if maybe your createdb command is connecting to a different postmaster
than you think it is. Check environment variables, path, etc.

regards, tom lane


From: "Rick Schumeyer" <rschumeyer(at)ieee(dot)org>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: "template1 does not exist" while installing 8.0RC5 on RH9
Date: 2005-01-17 21:33:34
Message-ID: 006101c4fcdc$32eaa660$0200a8c0@dell8200
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

(red face) It seems I might possibly have neglected to kill the
postmaster from 7.4 before installing 8.0.

It is amazing how much better things work with the 8.0 postmaster.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Monday, January 17, 2005 4:12 PM
To: Rick Schumeyer
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] "template1 does not exist" while installing 8.0RC5 on
RH9

"Rick Schumeyer" <rschumeyer(at)ieee(dot)org> writes:
> Everything looks good, even the "initdb" command, which reports
> everything as ok.

> But the "createdb test" command fails, with error
> 'database "template1" does not exist'

initdb executes half a dozen reconnections to template1 after the
initial bootstrap, so it's real hard to see how a broken pg_database
entry wouldn't have caused a failure during initdb. I'm wondering
if maybe your createdb command is connecting to a different postmaster
than you think it is. Check environment variables, path, etc.

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rick Schumeyer" <rschumeyer(at)ieee(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: "template1 does not exist" while installing 8.0RC5 on RH9
Date: 2005-01-17 22:15:38
Message-ID: 11104.1106000138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

"Rick Schumeyer" <rschumeyer(at)ieee(dot)org> writes:
> (red face) It seems I might possibly have neglected to kill the
> postmaster from 7.4 before installing 8.0.

Ooops ;-). If you didn't already, I'd suggest wiping and re-initdb'ing
the PGDATA area. It's possible that the 7.4 postmaster corrupted things
before you killed it.

regards, tom lane