Re: trouble with an older version of postgresql

From: Krešimir Križanović <Kresimir(dot)Krizanovic(at)fer(dot)hr>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: trouble with an older version of postgresql
Date: 2010-02-08 13:26:50
Message-ID: E14FE684AF8EC84B854B0CEBA87A8318714288@sluga.fer.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

The trouble is there is no database. When i try to create the first one using createdb, i get an error:

createdb: could not connect to database postgres: FATAL: Database "postgres" does not exist in the system catalog.

Someone suggested i create my database using psql. But i cant do that, cant start psql. I havent yet created a single database.

K.K.

From: pgsql-novice-owner(at)postgresql(dot)org [mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Jayadevan M
Sent: Monday, February 08, 2010 11:15 AM
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] trouble with an older version of postgresql

Hi,
Probably it is trying to connect to a database "kkrizan" which is not there at all. Please try using psql with database option, and specify an existing database name.
Like this
psql -d PROFICIENT
Regards,
Jayadevan

From: Krešimir Križanović <Kresimir(dot)Krizanovic(at)fer(dot)hr>
To:
Cc: <pgsql-novice(at)postgresql(dot)org>
Date: 02/08/2010 03:09 PM
Subject: Re: [NOVICE] trouble with an older version of postgresql
Sent by: pgsql-novice-owner(at)postgresql(dot)org

________________________________


I cant start psql. It says:

psql: FATAL: Database "kkrizan" does not exist in the system catalog.

'kkrizan' is my username.

K.K.

From: Mladen Gogala [mailto:mladen(dot)gogala(at)vmsinfo(dot)com <mailto:mladen(dot)gogala(at)vmsinfo(dot)com> ]
Sent: Saturday, February 06, 2010 12:08 AM
To: Krešimir Križanović
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] trouble with an older version of postgresql

Create database "postgres" from psql. It's an empty database, anyway.

On Fri, 2010-02-05 at 11:47 +0100, Krešimir Križanović wrote:

Hi, i downloaded telegraphCQ, a datastreaming tool based on postgresql 7.3.2.

I managed to install it and some library it needs, and now i have to start postmaster and create a database.


Step 1: $ initdb --no-locale -D /home/kkrizan/tcq/pgdata
All goes well

Step 2: $ pg_ctl start -D /home/kkrizan/tcq/pgdata -l /home/kkrizan/tcq/log/pglog
All goes well. I can see postmaster process using ps –x.

Step 3: $ createdb kkdb
I get an error.
createdb: could not connect to database postgres: FATAL: Database "postgres" does not exist in the system catalog.

Could you give me a few pointers how to solve this error problem?


Thanks in advance

Kresimir Krizanovic

Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com <http://www.vmsinfo.com/>

The Leader in Integrated Media Intelligence Solutions

DISCLAIMER:

"The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Joshua Tolley 2010-02-08 14:02:30 Re: trouble with an older version of postgresql
Previous Message Jayadevan M 2010-02-08 10:14:42 Re: trouble with an older version of postgresql