Devrim GUNDUZ <devrim@xxxxxxxxxx> writes: > psql checks for PGUSER, PGPASSWORD, PGHOST, PGPORT, PGDATABASE and some > other environmental variables. Export relevant values to the parameters. PGPASSWORD is deprecated because it is insecure on some platforms (to wit, those where other users can see a process' environment variables via ps). The ~/.pgpass file is the recommended way to go. regards, tom lane