BUG #14859: Config file parsing is allergic to spaces on last line of file

From: boatcoder(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: boatcoder(at)gmail(dot)com
Subject: BUG #14859: Config file parsing is allergic to spaces on last line of file
Date: 2017-10-17 14:18:14
Message-ID: 20171017141814.8203.27280@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14859
Logged by: Mark Jones
Email address: boatcoder(at)gmail(dot)com
PostgreSQL version: 9.5.9
Operating system: Ubuntu
Description:

Edit your pg_hba.conf file, add a space (without a new line) at the end of
the file.

Attempt to start postgres. It will fail with messages like this.

2017-10-17 13:20:22 UTC [2471-1] LOG: invalid connection type "ost"
2017-10-17 13:20:22 UTC [2471-2] CONTEXT: line 103 of configuration file
"/etc/postgresql/9.5/main/pg_hba.conf"
2017-10-17 13:20:22 UTC [2471-3] FATAL: could not load pg_hba.conf

Look at config file file, scratch head because space is hard to
detect.....
Finally figure it out. Wonder how that space got in there....

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-10-17 14:44:17 Re: BUG #14859: Config file parsing is allergic to spaces on last line of file
Previous Message Andrew Gierth 2017-10-17 09:50:24 Re: Improper const-evaluation of HAVING with grouping sets and subquery pullup