pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: Paul Förster <paul.foerster@gmail.com>
Cc: Hemil Ruparel <hemilruparel2002@gmail.com>
Cc: Muthukumar.GK <muthankumar@gmail.com>
Cc: Nicklas Avén <nicklas.aven@jordogskog.no>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: Accessing Postgres Server and database from other Machine
Date: Sat, 5 Dec 2020 12:44:15 +0100
Message-ID: <808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.com> (raw)
In-Reply-To: <9BA257B9-D281-4CD0-B8EB-62ABFFD9924B@gmail.com>
References: <CA+rAWgnbLk9TWatPPQYx_R1Mvgdd+59cnrx1tOGJXbZ2G6S1=A@mail.gmail.com>
	<f8dea25e-205d-3ad7-30c8-6f81586a9bd0@aklaver.com>
	<A67CA642-8DE2-4429-8D6C-A22CF035B120@gmail.com>
	<717fd284-6bf5-c5d5-3fed-bb3677108b7a@aklaver.com>
	<450B1DA0-91E3-43E9-873A-82E89A655AC5@jordogskog.no>
	<CA+rAWgnHBBvTJNFOy+8XXya7vfp4d9sR6nHD2e9VSgta+QcaHA@mail.gmail.com>
	<CANW1aT8jXj+ZTKmCb_hNydX69LogNa-BYOaZdotLcLRpbCFjOQ@mail.gmail.com>
	<9BA257B9-D281-4CD0-B8EB-62ABFFD9924B@gmail.com>


> On 5 Dec 2020, at 10:05, Paul Förster <paul.foerster@gmail.com> wrote:
> 
> Hi Hemil,
> 
>> On 05. Dec, 2020, at 07:50, Hemil Ruparel <hemilruparel2002@gmail.com> wrote:
>> 
>> Did you restart postgres after changing pg_hba.conf?
> 
> that shouldn't be necessary for changes in pg_hba.conf. Just do either on the command line:
> 
> $ pg_ctl reload

While you’re in there, also verify that something is listening on the port (see below)

$ netstat -an


> or from psql:
> 
> postgres=# select pg_reload_conf();
> 
> You can then see the effective result immediately in pg_hab_file_rules:
> 
> postgres=# table pg_hba_file_rules;

Also:

postgres=# show listen_addresses;

postgres=# show port;

Those will tell you whether the server is listening on the network and on the expected port.

Alban Hertroys
--
There is always an exception to always.









view thread (18+ messages)  latest in thread

Message-ID: <808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.com>
Permalink:  ../808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.com/
Also on:    postgresql.org/message-id/808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.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: haramrae@gmail.com, paul.foerster@gmail.com, hemilruparel2002@gmail.com, muthankumar@gmail.com, nicklas.aven@jordogskog.no, adrian.klaver@aklaver.com
  Subject: Re: Accessing Postgres Server and database from other Machine
  In-Reply-To: <808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.com>
  References: <CA+rAWgnbLk9TWatPPQYx_R1Mvgdd+59cnrx1tOGJXbZ2G6S1=A@mail.gmail.com> <f8dea25e-205d-3ad7-30c8-6f81586a9bd0@aklaver.com> <A67CA642-8DE2-4429-8D6C-A22CF035B120@gmail.com> <717fd284-6bf5-c5d5-3fed-bb3677108b7a@aklaver.com> <450B1DA0-91E3-43E9-873A-82E89A655AC5@jordogskog.no> <CA+rAWgnHBBvTJNFOy+8XXya7vfp4d9sR6nHD2e9VSgta+QcaHA@mail.gmail.com> <CANW1aT8jXj+ZTKmCb_hNydX69LogNa-BYOaZdotLcLRpbCFjOQ@mail.gmail.com> <9BA257B9-D281-4CD0-B8EB-62ABFFD9924B@gmail.com> <808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.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