Skip site navigation (1) Skip section navigation (2)

How to set default database

From: Krzysztof Walkiewicz <bars0(at)op(dot)pl>
To: pgsql-novice(at)postgresql(dot)org
Subject: How to set default database
Date: 2010-02-04 18:37:30
Message-ID: 4B6B13EA.4070004@op.pl (view raw or flat)
Thread:
Lists: pgsql-novice
Hello!

I created database "krzysztof" for practice postgresql. After few days i 
  deleted that database and i created the next one "cwiczebna". Now when 
I type "psql" i get strange info, something like: "CRITICAL: base 
"krzysztof" don't exist". Now i need to  type "psql cwiczebna" to log in 
to new database. How to set the default database or connect 
automatically to "cwiczebna" database when I type "psql" in terminal. I 
am using Debian Lenny distro.

-- 
Krzysztof Walkiewicz
-----------------------
bars0(at)op(dot)pl

Responses

pgsql-novice by date

Next:From: Hilda RaymondDate: 2010-02-04 19:01:28
Subject: Any way to recover a lost db..
Previous:From: Mohlomi MoloiDate: 2010-02-04 06:45:17
Subject: Re: Postgres Trainign in RSA

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group