Silent failure with invalid hba_file setting - Mailing list pgsql-hackers

From Thom Brown
Subject Silent failure with invalid hba_file setting
Date
Msg-id CAA-aLv7ZvQDZqSjk4OpBcoxpXYEVrPNxMiFpHaB+HEMcdidFLQ@mail.gmail.com
Whole thread Raw
Responses Re: Silent failure with invalid hba_file setting  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

I noticed that if the hba_file setting in the config is uncommented
and set to a directory instead of the full path to the file, no error
occurs when the service starts.

For example:

hba_file = '/home/thom/Development/data'

The problem with this is you cannot get into the database as it acts
as if it did find the hba file but found it empty.

Shouldn't a check be in place to ensure that the parameter resolves to
a file rather than anything else?  And even if it does find a file,
but it's empty, shouldn't it also produce a warning of some kind?

-- 
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: desmodemone
Date:
Subject: Re: BUG or strange behaviour of update on primary key
Next
From: Tom Lane
Date:
Subject: Re: (patch) regression diffs on collate.linux.utf8 test