"Tauren Mills" <tauren@servlets.net> writes:
> I've read the documentation for the psql commands as well as the createdb
> and dropdb commands. It looks like there is no way to specify the password
> on the command line. The password is always provided in the form of a stdin
> prompt.
Quite deliberately ... if passwords were provided on the command line,
then anyone else on your machine could read them off with 'ps'.
regards, tom lane