The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/runtime-config-connection.html
Description:
In the documentation, I read:
<quote>
20.3.1. Connection Settings
listen_addresses (string)
Specifies the TCP/IP address(es) on which the server is to listen for
connections from client applications. The value takes the form of a
comma-separated list of host names and/or numeric IP addresses. (...)
</quote>
I tried different versions of names and IPs, quoted in single, double and no
quotes at all, comma separated between quotes and inside, like
<quote>
listen_addresses = '192.168.32.3','127.0.0.1'
# or
listen_addresses = '192.168.32.3,127.0.0.1'
</quote>
but `sudo journalctl -eb -u postgresql@14-main.service -o cat`
gives me:
<quote>
Reloading PostgreSQL Cluster 14-main...
Error: invalid line 61 in /etc/postgresql/14/main/postgresql.conf:
listen_addresses = "192.168.32.3","127.0.0.1"
postgresql@14-main.service: Control process exited, code=exited,
status=1/FAILURE
Reload failed for PostgreSQL Cluster 14-main.
Reloading PostgreSQL Cluster 14-main...
Error: invalid line 61 in /etc/postgresql/14/main/postgresql.conf:
listen_addresses = "192.168.32.3,127.0.0.1"
postgresql@14-main.service: Control process exited, code=exited,
status=1/FAILURE
Reload failed for PostgreSQL Cluster 14-main.
Reloading PostgreSQL Cluster 14-main...
Error: invalid line 61 in /etc/postgresql/14/main/postgresql.conf:
listen_addresses = '192.168.32.3','127.0.0.1'
postgresql@14-main.service: Control process exited, code=exited,
status=1/FAILURE
Reload failed for PostgreSQL Cluster 14-main.
</quote>
So I tried to follow the otherwise seen pattern and wrote into
postgresql.conf:
<quote>
listen_addresses = '192.168.32.3'
listen_addresses = '127.0.0.1'
</quote>
which worked.
Note, that in the file itself, the comment repeats the (imho)
misinformation.
<quote>
#listen_addresses = 'localhost' # what IP address(es) to listen on;
# comma-separated list of addresses;
</quote>