Re: \connect

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Anand Raman" <araman(at)india-today(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: \connect
Date: 2001-01-04 22:22:00
Message-ID: 200101042222.f04MM0H11702@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Anand Raman" wrote:
>hi guys
>how to connect as a different user to a different db using the \connect
>command.. I dont see any option for specifing the password or the host to
>which i want to connect .

\connect database user

The password is then prompted for, if appropriate.

You can't use this command to connect to a different postmaster (whether
a different port on the same server, or another server altogether).

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"But because of his great love for us, God, who is rich
in mercy, made us alive with Christ even when we were
dead in transgressions-it is by grace you have been
saved." Ephesians 2:4,5

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2001-01-04 22:25:27 Re: Inheritance and Foreign Keys
Previous Message Steve Wolfe 2001-01-04 22:21:55 Re: VACUM database