From: Tom Lane <tgl@sss.pgh.pa.us>
To: Seamus Ryan <ryan@post.queensu.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: initdb - (InitPostgres) - FATAL: database "postgres" does not exist
Date: Wed, 01 Sep 2004 19:00:33 -0400
Message-ID: <11148.1094079633@sss.pgh.pa.us> (raw)
In-Reply-To: <6.1.2.0.0.20040901091028.01bd9488@post.queensu.ca>
References: <6.1.2.0.0.20040901091028.01bd9488@post.queensu.ca>
Seamus Ryan <ryan@post.queensu.ca> writes:
> Note in the initdb script I altered the call to postgres to turn on debug:
Hmmm ....
> Any hints on why InitPostgres is not finding database "postgres"?
Because there isn't one --- at that point in the process, only database
template1 will exist.
The postgres invocation at that step of initdb looks just about the
same as the previous ones:
"$PGPATH"/postgres $PGSQL_OPT template1 >/dev/null <<EOF
and it should certainly go to template1 rather than defaulting to $USER.
I suspect that you messed this command up somehow while hand-modifying
the script.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ryan@post.queensu.ca
Subject: Re: initdb - (InitPostgres) - FATAL: database "postgres" does not exist
In-Reply-To: <11148.1094079633@sss.pgh.pa.us>
References: <6.1.2.0.0.20040901091028.01bd9488@post.queensu.ca> <11148.1094079633@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox