Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets.

This commit is contained in:
Riccardo Magliocchetti 2013-10-21 16:53:25 +02:00 committed by Tim Graham
parent 3565efaa45
commit 1e39982b6e
1 changed files with 4 additions and 2 deletions

View File

@ -506,8 +506,10 @@ this value is assumed to be the host.
If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection
to the database is done through UNIX domain sockets ('local' lines in to the database is done through UNIX domain sockets ('local' lines in
``pg_hba.conf``). If you want to connect through TCP sockets, set ``pg_hba.conf``). If your UNIX domain socket is not in the standard location,
:setting:`HOST` to 'localhost' or '127.0.0.1' ('host' lines in ``pg_hba.conf``). use the same value of ``unix_socket_directory`` from ``postgresql.conf``.
If you want to connect through TCP sockets, set :setting:`HOST` to 'localhost'
or '127.0.0.1' ('host' lines in ``pg_hba.conf``).
On Windows, you should always define :setting:`HOST`, as UNIX domain sockets On Windows, you should always define :setting:`HOST`, as UNIX domain sockets
are not available. are not available.