Re: \connect - Mailing list pgsql-general

From Oliver Elphick
Subject Re: \connect
Date
Msg-id 200101042222.f04MM0H11702@linda.lfix.co.uk
Whole thread Raw
In response to \connect  ("Anand Raman" <araman@india-today.com>)
List 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.Elphick@lfix.co.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



pgsql-general by date:

Previous
From: Uro Gruber
Date:
Subject: VACUM database
Next
From: "Steve Wolfe"
Date:
Subject: Re: VACUM database