psql profiles?

From: Matt Zagrabelny <mzagrabe(at)d(dot)umn(dot)edu>
To: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: psql profiles?
Date: 2018-12-06 22:19:27
Message-ID: CAOLfK3VvDo=mm9N_dxrYouwj4hN_izhMeaNU6gqRa9evTL7ORw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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:

psql -h db-host-1.example.com foo

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2018-12-06 22:23:18 Re: psql profiles?
Previous Message Laurenz Albe 2018-12-06 17:29:36 Re: n_mod_since_analyze