How to set password in psql -h -d -U command line? - Mailing list pgsql-general

From Shaozhong SHI
Subject How to set password in psql -h -d -U command line?
Date
Msg-id CA+i5JwYrfM-iyHYLjUG3wMQ_5zYtyDNhLFQ_vNF4Azz5OrPbXQ@mail.gmail.com
Whole thread Raw
Responses Aw: How to set password in psql -h -d -U command line?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: How to set password in psql -h -d -U command line?  (Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>)
Re: How to set password in psql -h -d -U command line?  (Josha Inglis <joshainglis@gmail.com>)
List pgsql-general
I tried various ways to set password in psql command line, but got no luck.

Can anyone help?

Regards,

David

pgsql-general by date:

Previous
From: Zb B
Date:
Subject: Re: Replication with Patroni not working after killing secondary and starting again
Next
From: Junsong Yang
Date:
Subject: About postgresql-db Directory