Re: suggestion/question pgpass alias? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: suggestion/question pgpass alias?
Date
Msg-id 20200611202725.GA2830@alvherre.pgsql
Whole thread Raw
In response to suggestion/question pgpass alias?  (Caleb Cushing <xenoterracide@gmail.com>)
Responses Re: suggestion/question pgpass alias?  (Caleb Cushing <xenoterracide@gmail.com>)
List 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



pgsql-general by date:

Previous
From: Caleb Cushing
Date:
Subject: suggestion/question pgpass alias?
Next
From: Caleb Cushing
Date:
Subject: suggestion: psql configs in .config