Re: [GENERAL] Where is pg_hba.conf

2017-08-14 Thread Arthur Zakirov
Hello, On Sun, Aug 13, 2017 at 10:00:23AM -0400, Igor Korot wrote: > However, I can't find this file anywhere on the system. > I am able to connec to the server locally with psql. I can also > connect to the server > from the ODBC driver from my program. However doing a global search I > can't

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread George Neuner
On Sun, 13 Aug 2017 10:55:00 -0400, Igor Korot wrote: >Also, I presume that the address in this file is the address of the >machine where the server is located, not the address from where the >connection is initiated. No. The addresses / network segments in the file specify

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread David G. Johnston
On Sunday, August 13, 2017, Igor Korot wrote: > Also, I presume that the address in this file is the address of the > machine where the server is located, not the address from where the > connection is initiated. > Not according to the docs.

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Igor Korot
Also, I presume that the address in this file is the address of the machine where the server is located, not the address from where the connection is initiated. On Sun, Aug 13, 2017 at 10:53 AM, Igor Korot wrote: > Hi, > OK, I found it under the root account. > > Now I am

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Igor Korot
Hi, OK, I found it under the root account. Now I am modifying it as follows: # TYPE DATABASEUSERADDRESS METHOD # "local" is for Unix domain socket connections only local all all md5 # IPv4 local connections:

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Christoph Berg
Re: Igor Korot 2017-08-13 > draft=# SHOW hba_file > draft-# SHOW hba_file; > ERROR: syntax error at or near "SHOW" > LINE 2: SHOW hba_file; > ^ Standard beginners error. If you forgot the ";" on the first

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Igor Korot
Hi, armand, On Sun, Aug 13, 2017 at 10:12 AM, armand pirvu wrote: > Normally should reside in the data dir. My case below > > armandps-MacBook-Air:~ armandp$ ps -fu postgres |grep data > 502 29591 1 0 Thu09PM ?? 0:01.63 >

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Igor Korot
Hi, Christoph, On Sun, Aug 13, 2017 at 10:09 AM, Christoph Berg wrote: > Re: Igor Korot 2017-08-13 > >> I need to modify the pg_hba.conf file to get access to the DB >> remotely. >> >> However, I can't find

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread armand pirvu
Normally should reside in the data dir. My case below armandps-MacBook-Air:~ armandp$ ps -fu postgres |grep data 502 29591 1 0 Thu09PM ?? 0:01.63 /Library/PostgreSQL/9.6/bin/postgres -D /Library/PostgreSQL/9.6/data armandps-MacBook-Air:~ armandp$ ls -l

Re: [GENERAL] Where is pg_hba.conf

2017-08-13 Thread Christoph Berg
Re: Igor Korot 2017-08-13 > I need to modify the pg_hba.conf file to get access to the DB > remotely. > > However, I can't find this file anywhere on the system. Try "SHOW hba_file;". Christoph -- Sent via pgsql-general