[BUGS] BUG #14859: Config file parsing is allergic to spaces on last line offile - Mailing list pgsql-bugs

From boatcoder@gmail.com
Subject [BUGS] BUG #14859: Config file parsing is allergic to spaces on last line offile
Date
Msg-id 20171017141814.8203.27280@wrigleys.postgresql.org
Whole thread Raw
Responses Re: [BUGS] BUG #14859: Config file parsing is allergic to spaces on last line of file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14859
Logged by:          Mark Jones
Email address:      boatcoder@gmail.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....


--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: [BUGS] Improper const-evaluation of HAVING with grouping sets and subquery pullup
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14859: Config file parsing is allergic to spaces on last line of file