Re: FATAL 1: Database dbname=template1 does not exist in pg_database

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: chuettl@ahorn-Net.de
Cc: PostgreSQL Liste Novice <pgsql-novice@postgresql.org>, PostgreSQL Liste General <pgsql-general@postgresql.org>
Date: 2000-06-26T14:59:51Z
Lists: pgsql-general, pgsql-novice
Carsten Huettl <chuettl@ahorn-Net.de> writes:
> When I ty to access my pgsql with apache and php3 I got the following
> error:

> FATAL 1:  Database dbname=template1 does not exist in pg_database
> When I connect with psql I can see template1.

> How do I insert template1 into pg_database?

Read it again: the error message is complaining because you tried to
access a database named "dbname=template1".  Better check the syntax
on the connection subroutine you are using --- looks like a confusion
between positional parameters and keyword-style connect strings...

			regards, tom lane