How to set default database

From: Krzysztof Walkiewicz <bars0(at)op(dot)pl>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: How to set default database
Date: 2010-02-04 18:40:30
Message-ID: 4B6B149E.4070700@op.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Browse pgsql-general by date

  From Date Subject
Next Message Gauthier, Dave 2010-02-04 18:41:59 Re: Performance Tuning - Any easy things that I can do ?
Previous Message Joe Conway 2010-02-04 18:37:20 Re: Performance Tuning - Any easy things that I can do ?