changeset 1700 | f987c277f760 |
parent 1684 | 88f1d11d2adf |
child 1701 | 6163ba5907d4 |
--- 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 +