default database selector

From: "Dave Potts" <dave(dot)potts(at)pinan(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: default database selector
Date: 2012-02-07 06:31:51
Message-ID: d85520ba6caa64bbdb78ce6fdba869df.squirrel@dp2642.force9.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am running Ubuntu 11.04, I have Postgres 8.4 and 9.1 installed.

My default when I say psql it connects to postgres 8.4

ie I set export PGCLUSTER=9.1/main

it connects to 9.1

Q. How can I connect to 9.1 by default without having to set PGCLUSTER?

I looked in /etc/postgresql-common, there did not seem to be anything
obivious in there for which version to use.

Dave.
--

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2012-02-07 08:30:11 Re: Don't Thread On Me (PostgreSQL related)
Previous Message Dave Potts 2012-02-07 06:08:14 Re: problems connecting to php via pg_connect and PGCLUSTER