pg-hba.conf

Postgresql remote access no pg_hba.conf entry for host

放肆的年华 提交于 2020-12-13 04:46:04
问题 I'm trying to get remote access to postgresql, installed on a server with IP A.A.A.A. There are two servers which one them has IP A.A.A.A, where postgresql has been installed on; and the other one has IP B.B.B.B. I've edited /etc/postgresql/10/main/pg_hba.conf and added the following lines host my_db db_user B.B.B.B/32 md5 host my_db db_user A.A.A.A/32 md5 I've also edited /etc/postgresql/10/main/postgresql.conf and set listen_addresses to '*' , like this: #-----------------------------------

Postgres find configuration files in linux

荒凉一梦 提交于 2019-12-01 09:37:35
I've spent lots of time to find Postgres configuration files like pg_hba.conf or postgresql.conf in different distributions of linux and also postgres versions itself! and I was very confused... Finally I found the global solution for it. First you should follow these steps: su - postgres psql For postgres configuration file : SHOW config_file; the output should be like this: postgres=# SHOW config_file; config_file ------------------------------------------ /etc/postgresql/9.6/main/postgresql.conf (1 row) and for hba_file use: SHOW hba_file; If you instance is not started and you can't select

Postgres find configuration files in linux

我怕爱的太早我们不能终老 提交于 2019-12-01 08:22:53
问题 I've spent lots of time to find Postgres configuration files like pg_hba.conf or postgresql.conf in different distributions of linux and also postgres versions itself! and I was very confused... 回答1: Finally I found the global solution for it. First you should follow these steps: su - postgres psql For postgres configuration file : SHOW config_file; the output should be like this: postgres=# SHOW config_file; config_file ------------------------------------------ /etc/postgresql/9.6/main