I'm trying to formulate a rule from pg_hba.conf file. Thus far I have understood that
pg_hba.conf file is used to give access to the specific user for a specific host. But I just want to take a second opinion hence this question.
Given that I defined a set of entry in
# IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5 host all all 220.127.116.11/32 md5
Then does Postgres guarantee the only way anyone can connect to Postgres is either using
localhost or from
18.104.22.168 and not other IP will be able to access the Postgres server.
Is my understanding correct?