psql profiles? - Mailing list pgsql-general

From Matt Zagrabelny
Subject psql profiles?
Date
Msg-id CAOLfK3VvDo=mm9N_dxrYouwj4hN_izhMeaNU6gqRa9evTL7ORw@mail.gmail.com
Whole thread Raw
Responses Re: psql profiles?  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-general
Greetings,

I'm setting up my workstation to use "gss" for auth to a variety of Pg systems on different hosts.

I'd rather not have to specify the "-h" for a connection:


I'd rather do:

psql foo

and have it know that I connect to foo on host db-host-1.example.com.

Is this possible with psql or do I hack together some wrapper script?

Thanks for any input!

-m

pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: n_mod_since_analyze
Next
From: Alvaro Herrera
Date:
Subject: Re: psql profiles?