A better error message for reject option in pg_hba.conf

From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: PostgreSQL - General ML <pgsql-general(at)postgresql(dot)org>
Subject: A better error message for reject option in pg_hba.conf
Date: 2008-07-11 06:38:16
Message-ID: 1215758296.5130.0.camel@laptop.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

(This is a very minor thing, but still...)

Suppose we have this line in pg_hba.conf:

local all all reject

Now:

$ psql template1 -U postgres

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

Actually there *is* an entry for local, user postgres and database
template1 -- but it is a reject. Should we improve this message and
return an error actually?

...or am I overlooking something?

Regards,
--
Devrim GÜNDÜZ
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org

Browse pgsql-general by date

  From Date Subject
Next Message Michael Shulman 2008-07-11 07:08:09 view row-level locks
Previous Message Klint Gore 2008-07-11 03:24:28 Top N within groups?