Re: suggestion/question pgpass alias?

From: Caleb Cushing <xenoterracide(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: suggestion/question pgpass alias?
Date: 2020-06-11 21:00:02
Message-ID: CAAHKNRH0LadpzFyKu4PZQFL7Ez2g+uda7GN8H1bPKuVHm3YYmg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks!

On Thu, Jun 11, 2020 at 3:27 PM Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> 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
>

--
Caleb Cushing

https://xenoterracide.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Caleb Cushing 2020-06-11 21:07:33 Re: suggestion: psql configs in .config
Previous Message Laurenz Albe 2020-06-11 20:53:15 Re: Something else about Redo Logs disappearing