pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedsuggestion/question pgpass alias?
3+ messages / 2 participants
[nested] [flat]
* suggestion/question pgpass alias?
@ 2020-06-11 20:25 Caleb Cushing <xenoterracide@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Caleb Cushing @ 2020-06-11 20:25 UTC (permalink / raw)
To: pgsql-general
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?
--
Caleb Cushing
https://xenoterracide.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: suggestion/question pgpass alias?
@ 2020-06-11 20:27 Alvaro Herrera <alvherre@2ndquadrant.com>
parent: Caleb Cushing <xenoterracide@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Herrera @ 2020-06-11 20:27 UTC (permalink / raw)
To: Caleb Cushing <xenoterracide@gmail.com>; +Cc: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: suggestion/question pgpass alias?
@ 2020-06-11 21:00 Caleb Cushing <xenoterracide@gmail.com>
parent: Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: Caleb Cushing @ 2020-06-11 21:00 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-general
Thanks!
On Thu, Jun 11, 2020 at 3:27 PM Alvaro Herrera <alvherre@2ndquadrant.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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-06-11 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 20:25 suggestion/question pgpass alias? Caleb Cushing <xenoterracide@gmail.com>
2020-06-11 20:27 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2020-06-11 21:00 ` Caleb Cushing <xenoterracide@gmail.com>
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