From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: davidburcaa@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16017: Postgres does not respond non-local connections
Date: Sun, 22 Sep 2019 21:14:50 +0100
Message-ID: <87y2ygnlbu.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <16017-c776eda3741e5e10@postgresql.org>
References: <16017-c776eda3741e5e10@postgresql.org>
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:
PG> (Note that I have already looked through the pg_hba.conf.sample and
PG> the postgres.conf.sample (I'm not exactly sure why they're named
PG> .sample, Ill just leave is as-is for now) and changed the settings
PG> so that they would accept non-local connections.
The .sample files are badly named. They aren't samples, and you're not
expected to edit them (though you can if you know what you're doing);
what they really are is _templates_, which initdb uses to create the
real postgresql.conf and pg_hba.conf files. Nothing reads them except
initdb.
To actually enable remote connections, you need to edit the
listen_addresses setting in postgresql.conf (not .sample) for the
running server and restart it. Connecting locally and doing
"SHOW config_file;" should tell you where to find it.
--
Andrew (irc:RhodiumToad)
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-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, davidburcaa@gmail.com
Subject: Re: BUG #16017: Postgres does not respond non-local connections
In-Reply-To: <87y2ygnlbu.fsf@news-spur.riddles.org.uk>
References: <16017-c776eda3741e5e10@postgresql.org> <87y2ygnlbu.fsf@news-spur.riddles.org.uk>
* 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