Thread: \connect

\connect

From
"Anand Raman"
Date:
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 .
Am i missing something..
Thanx for any suggestions
Anand


Re: \connect

From
"Oliver Elphick"
Date:
"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