Skip to content

Commit

Permalink
Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets.
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored and timgraham committed Oct 21, 2013
1 parent 3565efa commit 1e39982
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ref/settings.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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.


Expand Down

0 comments on commit 1e39982

Please sign in to comment.