From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Caleb Cushing <xenoterracide@gmail.com>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: suggestion/question pgpass alias?
Date: Thu, 11 Jun 2020 16:27:25 -0400
Message-ID: <20200611202725.GA2830@alvherre.pgsql> (raw)
In-Reply-To: <CAAHKNRFOaz13twr_p0aXkUmLSQ0neFEtkijpHUm1Gi0mEu-fMw@mail.gmail.com>
On 2020-Jun-11, Caleb Cushing wrote:
> is it possible to support an alias for a pgpassfile? what I'm looking to do
> is
>
> psql --alias company -h localhost
>
> and not type anything else and get a shell. if this is not possible could
> this be added?
I think what you want is a "service" file. See
https://www.postgresql.org/docs/current/libpq-pgservice.html
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, xenoterracide@gmail.com
Subject: Re: suggestion/question pgpass alias?
In-Reply-To: <20200611202725.GA2830@alvherre.pgsql>
References: <CAAHKNRFOaz13twr_p0aXkUmLSQ0neFEtkijpHUm1Gi0mEu-fMw@mail.gmail.com> <20200611202725.GA2830@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox