Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iC8G3-0000iS-7C for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Sep 2019 20:14:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iC8G2-0000og-0v for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Sep 2019 20:14:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iC8G1-0000oP-MN for pgsql-bugs@lists.postgresql.org; Sun, 22 Sep 2019 20:14:57 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iC8Fz-00022M-2F for pgsql-bugs@lists.postgresql.org; Sun, 22 Sep 2019 20:14:56 +0000 Received: from [192.168.127.1] (port=53725 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.88 (FreeBSD)) (envelope-from ) id 1iC8Fv-000GDf-HF; Sun, 22 Sep 2019 20:14:51 +0000 Received: from localhost ([127.0.0.1]:61989 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.92.1 (FreeBSD)) (envelope-from ) id 1iC8Fu-0005kF-SO; Sun, 22 Sep 2019 20:14:50 +0000 From: Andrew Gierth To: davidburcaa@gmail.com Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16017: Postgres does not respond non-local connections In-Reply-To: <16017-c776eda3741e5e10@postgresql.org> (PG Bug reporting form's message of "Sun, 22 Sep 2019 13:54:22 +0000") Message-ID: <87y2ygnlbu.fsf@news-spur.riddles.org.uk> References: <16017-c776eda3741e5e10@postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix) Date: Sun, 22 Sep 2019 21:14:50 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form 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)