Re: suggestion/question pgpass alias?

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Caleb Cushing <xenoterracide(at)gmail(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 20:27:25
Message-ID: 20200611202725.GA2830@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Caleb Cushing 2020-06-11 20:28:32 suggestion: psql configs in .config
Previous Message Caleb Cushing 2020-06-11 20:25:51 suggestion/question pgpass alias?