"Neil Aggarwal" <neil(at)JAMMConsulting(dot)com> writes:
> With mysql, I can pass the password to the database in
> the command line call to the terminal client.
Really? That's an enormous security hole, because anyone running "ps"
on the system can see your password.
> Is there a way to do that with psql?
Consider using a ~/.pgpass file instead. Much safer.
regards, tom lane