psql in Batch mode and passwords?

From: "Michael A(dot) Schulte" <michael(dot)schulte(at)sun(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: psql in Batch mode and passwords?
Date: 2002-07-09 08:51:39
Message-ID: 3D2AA41B.7070608@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

does anyone have an idea how to convince psql
to accept a password that is passed during startup
of psql in the command line?

I don't want to modify pg_hba.conf so that it
is open for everyone so I have inserted:

local all trust
host all 129.157.0.0 255.255.0.0 password

I look for something like:
psql -h somehost -a dash anonymous/anonym
where there exists a postgres user named "anonymous"
and the password is anonym.

Best regards,
Michael

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Auri Mason 2002-07-09 10:19:41 meaning of explain
Previous Message aw-ml23 2002-07-09 07:45:52 How robust is postgre in case of power failure?