On Thu, Feb 4, 2010 at 1:40 PM, Krzysztof Walkiewicz <ba...@op.pl> wrote:
> 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. > Setup the 'PGDATABASE' environment variable http://www.postgresql.org/docs/current/interactive/libpq-envars.html --Scott