Re: FATAL 1: Database dbname=template1 does not exist in pg_database - Mailing list pgsql-general

From Tom Lane
Subject Re: FATAL 1: Database dbname=template1 does not exist in pg_database
Date
Msg-id 17186.962031591@sss.pgh.pa.us
Whole thread Raw
In response to FATAL 1: Database dbname=template1 does not exist in pg_database  (Carsten Huettl <chuettl@ahorn-Net.de>)
List pgsql-general
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

pgsql-general by date:

Previous
From: hgonzal@sinectis.com.ar
Date:
Subject: testing - please ignore
Next
From: "Morten W. Petersen"
Date:
Subject: Function to convert from (integer) UNIXTIME to DATETIME