gap between error and cure

Started by Jim Kunkelover 15 years ago2 messagesgeneral
Jump to latest
#1Jim Kunkel
jkunkel@laurcat.com

I get an error:

psql: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", database
"template1"

when I try to run "psql template1" (which I have been doing successfully for
several years)

version 8.4.5 compiled with no switches
centos 5.5

It worked last week, not this week.

I saw a reference to run a command "show hba_file" but there hasn't been any
clue as to WHERE one runs that command. Please hold my hand. Which user (root
or postgres) and which program?

Thanks in advance.

jk

#2Jayadevan M
Jayadevan.Maymala@ibsplc.com
In reply to: Jim Kunkel (#1)
Re: gap between error and cure

Hello,

I saw a reference to run a command "show hba_file" but there hasn't been

any

clue as to WHERE one runs that command. Please hold my hand. Whichuser

(root

or postgres) and which program?

Please try the command from psql.

postgres=# select user;
current_user
--------------
postgres
(1 row)

postgres=# show hba_file;
hba_file
-----------------------------------
/usr/local/pgsql/data/pg_hba.conf
(1 row)

Regards,
Jayadevan

DISCLAIMER:

"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."