From 1e39982b6ef1fd10e53392f4cb52bea3805d186f Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Mon, 21 Oct 2013 16:53:25 +0200 Subject: [PATCH] Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets. --- docs/ref/settings.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 4c46f3a8cdf..76e771bf34c 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -506,8 +506,10 @@ this value is assumed to be the host. If you're using PostgreSQL, by default (empty :setting:`HOST`), the connection to the database is done through UNIX domain sockets ('local' lines in -``pg_hba.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``). +``pg_hba.conf``). If your UNIX domain socket is not in the standard location, +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 are not available.