Re: How to set password in psql -h -d -U command line?

From: Josha Inglis <joshainglis(at)gmail(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to set password in psql -h -d -U command line?
Date: 2022-04-28 09:43:04
Message-ID: CAMX_STqOec3W_Td4nTkFrFGeBw7e0VZDu9uHSw4bdVFgpdNKow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

https://www.postgresql.org/docs/current/libpq-envars.html

Either set the PGPASSWORD environment variable or set up a .pgpass file

Josha

On Thu, 28 Apr 2022 at 19:33, Shaozhong SHI <shishaozhong(at)gmail(dot)com> wrote:

> I tried various ways to set password in psql command line, but got no luck.
>
> Can anyone help?
>
> Regards,
>
> David
>
--
Kind Regards

Josha Inglis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message alias 2022-04-28 11:26:35 Re: How to set password in psql -h -d -U command line?
Previous Message Joao Miguel Ferreira 2022-04-28 09:42:21 Re: How to set password in psql -h -d -U command line?