pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Johnson, Bruce E - (bjohnson) <Johnson@pharmacy.arizona.edu>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: listening on an address other than 'localhost'?
Date: Thu, 7 Sep 2023 07:47:13 -0700
Message-ID: <f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com> (raw)
In-Reply-To: <FEB5A474-B2D2-42B7-8D5D-FEF3B4564306@email.arizona.edu>
References: <FEB5A474-B2D2-42B7-8D5D-FEF3B4564306@email.arizona.edu>

On 9/6/23 12:23, Johnson, Bruce E - (bjohnson) wrote:
> per the documentation to listen for client connections on a given IP 
> address you set listen_addresses to a commaspearated list of IP 
> addresses in postgresql.conf
> 

> #listen_addresses = 10.128.206.109# what IP address(es) to listen on;
> # comma-separated list of addresses;
> # defaults to 'localhost'; use '*' for all
> # (change requires restart)
> 
> 
> What am I missing? (postgresql 15.4 running on Ubuntu 22.04), installed 
> via postgresql.org <http://postgresql.org> apt repo.


The other replies have indicated how you should format the value. For 
future reference the postgresql.conf configuration docs:

https://www.postgresql.org/docs/current/runtime-config.html

tell you what is expected. In this case:

https://www.postgresql.org/docs/current/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SET...

listen_addresses (string)

vs

port (integer)


> 
> 
> -- 
> Bruce Johnson
> University of Arizona
> College of Pharmacy
> Information Technology Group
> 
> Institutions do not have opinions, merely customs
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (4+ messages)

Message-ID: <f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com>
Permalink:  ../f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com/
Also on:    postgresql.org/message-id/f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, Johnson@pharmacy.arizona.edu
  Subject: Re: listening on an address other than 'localhost'?
  In-Reply-To: <f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com>
  References: <FEB5A474-B2D2-42B7-8D5D-FEF3B4564306@email.arizona.edu> <f0313896-4789-b6a1-5e59-b18eeee2984b@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox