From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Requiring pass and database psql shell command
Date: Mon, 5 Mar 2018 08:23:12 -0600
Message-ID: <c8afb0cf-c65b-beef-cff8-28a42a23f548@cox.net> (raw)
In-Reply-To: <JDZX1x00e1DF5NZ01DZYKs>
References: <CAGv31odR5a+oxff2KkJ5=JjVpN6BMU7HoF8Mot_QEdQN4DnBzg@mail.gmail.com>
<JDZX1x00e1DF5NZ01DZYKs>
The password file is also a solution.
https://www.postgresql.org/docs/current/static/libpq-pgpass.html
On 03/05/2018 07:33 AM, James Keener wrote:
> Well, it's not a problem, it's the way it's designed and it's a sensible
> design. Check https://www.postgresql.org/docs/9.3/static/libpq-envars.html
> for more info on doing what you want.
>
> On March 5, 2018 7:55:46 AM EST, "Ćukasz Jarych" <jaryszek@gmail.com> wrote:
>
> Hi Guys,
>
> do you have also problem that every time you have to log into your
> database using shell and psql?
>
> I have to write over and over localhost, username, password...how to
> force shell to remember this?
>
> Best,
> Jacek
>
>
--
Angular momentum makes the world go 'round.
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: ron.l.johnson@cox.net
Subject: Re: Requiring pass and database psql shell command
In-Reply-To: <c8afb0cf-c65b-beef-cff8-28a42a23f548@cox.net>
References: <CAGv31odR5a+oxff2KkJ5=JjVpN6BMU7HoF8Mot_QEdQN4DnBzg@mail.gmail.com> <JDZX1x00e1DF5NZ01DZYKs> <c8afb0cf-c65b-beef-cff8-28a42a23f548@cox.net>
* 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