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

From alias
Subject Re: How to set password in psql -h -d -U command line?
Date
Msg-id CAJA4AWTq4MN_bNgO0=zMe+WkqXtvtr=9Qc1+yu=CjTJgar8oGA@mail.gmail.com
Whole thread Raw
In response to Re: How to set password in psql -h -d -U command line?  (Josha Inglis <joshainglis@gmail.com>)
List pgsql-general

On Thu, Apr 28, 2022 at 3:13 PM Josha Inglis <joshainglis@gmail.com> wrote:
Either set the PGPASSWORD environment variable or set up a .pgpass file

Josha

On Thu, 28 Apr 2022 at 19:33, Shaozhong SHI <shishaozhong@gmail.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

pgsql-general by date:

Previous
From: Josha Inglis
Date:
Subject: Re: How to set password in psql -h -d -U command line?
Next
From: "Burke, William J Collins"
Date:
Subject: ERROR: cursor variable must be a simple variable (LINE XX: OPEN vQuery.cursorReturn FOR )