pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason L. Amerson <drjason@alphagenius.org>
Cc: 'Steve Crawford' <scrawford@pinpointresearch.com>
Cc: 'Adrian Klaver' <adrian.klaver@aklaver.com>
Cc: 'PostgreSQL' <pgsql-general@lists.postgresql.org>
Subject: Re: Remote Connection Help
Date: Thu, 21 Nov 2019 13:18:02 -0500
Message-ID: <27323.1574360282@sss.pgh.pa.us> (raw)
In-Reply-To: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org>
References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABXPB96Wx2qQItNorifwAzNAQAAAAA=@alphagenius.org>
	<c0d2694e-1fb2-764e-2ecd-9e5a5fd2e038@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAC1PA8iR8OoRKAkDl7hEyjMAQAAAAA=@alphagenius.org>
	<CAEfWYyzdPd=NNM_eOr4LXsAy+rfQvqVERQaDHBAM6E9aborYAw@mail.gmail.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org>

"Jason L. Amerson" <drjason@alphagenius.org> writes:
> I connected to PostgreSQL locally. I ran “show listen_addresses;” and it returned “localhost.” I ran “show port;” and it returned “5432.” I am now confused. I edited the “postgresql.conf” file and change the setting to ‘*’. Then I restarted the server with “service postgresql restart.” I was in root since I had to edit the config files. I thought maybe I edited the wrong file, like maybe there were two in two different locations or something. I ran “show confg_file;” and it returned “/usr/local/psql/data/postgresql.conf.” That is the same file I edited from the start. To be sure, I edited the file by using “nano /usr/local/psql/data/postgresql.conf.” I went down and found that I did have it as “listen_addresses = ‘*’ yet when I run “show listen_addresses”, it shows “localhost.” I am confused. When I run “netstat -nlt”, the results show that it is listening to “127.0.0.1:5432.”

According to what you wrote here, you did everything right, so it's
something you failed to mention.

One thing I'm wondering is whether you removed the comment symbol (#)
from the listen_addresses line when you edited it.  As installed,
postgresql.conf is pretty much all comments.

You might get more insight from

select * from pg_settings where name = 'listen_addresses';

particularly the source, sourcefile, sourceline fields.

			regards, tom lane





view thread (37+ messages)  latest in thread

Message-ID: <27323.1574360282@sss.pgh.pa.us>
Permalink:  ../27323.1574360282@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27323.1574360282@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, drjason@alphagenius.org, scrawford@pinpointresearch.com, adrian.klaver@aklaver.com
  Subject: Re: Remote Connection Help
  In-Reply-To: <27323.1574360282@sss.pgh.pa.us>
  References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABXPB96Wx2qQItNorifwAzNAQAAAAA=@alphagenius.org> <c0d2694e-1fb2-764e-2ecd-9e5a5fd2e038@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAC1PA8iR8OoRKAkDl7hEyjMAQAAAAA=@alphagenius.org> <CAEfWYyzdPd=NNM_eOr4LXsAy+rfQvqVERQaDHBAM6E9aborYAw@mail.gmail.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org> <27323.1574360282@sss.pgh.pa.us>

* 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