diff -r a805ad8f6c59 -r f987c277f760 postgre.rst --- a/postgre.rst Fri Mar 13 19:26:50 2015 +0200 +++ b/postgre.rst Mon Mar 23 10:53:06 2015 +0200 @@ -36,3 +36,17 @@ => select nspname from pg_catalog.pg_namespace; => \dn * +Using psql client. +================== + +Using password file ``~/.pgpass``:: + + # comment + hostname:port:database:username:password + hostname:port:*:username:password + hostname:*:*:username:password + +Connect by:: + + $ psql -U $USER -h $HOST $SCHEMA +