doc/web/source/installation/postgresql_configuration.rst
changeset 581 9c138471d569
parent 579 be0906181a10
child 626 f151defe7078
equal deleted inserted replaced
580:b62210b96ea7 581:9c138471d569
    20 For TCP/IP connections
    20 For TCP/IP connections
    21 ^^^^^^^^^^^^^^^^^^^^^^
    21 ^^^^^^^^^^^^^^^^^^^^^^
    22 Add a line like the following to your :file:`pg_hba.conf` if you want to
    22 Add a line like the following to your :file:`pg_hba.conf` if you want to
    23 connect via a TCP/IP connection to the PostgreSQL server.
    23 connect via a TCP/IP connection to the PostgreSQL server.
    24 Make sure to adjust the CIDR address if PostgreSQL is running on a
    24 Make sure to adjust the CIDR address if PostgreSQL is running on a
    25 different system::
    25 different system:
       
    26 
       
    27 .. code-block:: text
       
    28  :emphasize-lines: 2
    26 
    29 
    27  # IPv4 local connections:
    30  # IPv4 local connections:
    28  host    mailsys     +mailsys    127.0.0.1/32          md5
    31  host    mailsys     +mailsys    127.0.0.1/32          md5
    29 
    32 
    30 For Unix-domain socket connections
    33 For Unix-domain socket connections
    31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    34 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    32 If you want to use PostgreSQL's local Unix domain socket for database
    35 If you want to use PostgreSQL's local Unix domain socket for database
    33 connections add a line like the second one to your :file:`pg_hba.conf`::
    36 connections add a line like the second one to your :file:`pg_hba.conf`:
       
    37 
       
    38 .. code-block:: text
       
    39  :emphasize-lines: 2
    34 
    40 
    35  # "local" is for Unix domain socket connections only
    41  # "local" is for Unix domain socket connections only
    36  local   mailsys     +mailsys                    md5
    42  local   mailsys     +mailsys                    md5
    37  local   all         all                         ident sameuser
    43  local   all         all                         ident sameuser
    38 
    44