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

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: boatcoder(at)gmail(dot)com, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14859: Config file parsing is allergic to spaces on last line of file
Date: 2017-10-17 14:58:05
Message-ID: CAKFQuwbMWwgmaEnBN3oacvUZ8iSBs4w4DuuRrd_P6FRkAF30zQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Oct 17, 2017 at 7:44 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> boatcoder(at)gmail(dot)com writes:
> > 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.
>
> Hmph. I can reproduce this in 9.6 and earlier, but not in v10 or HEAD.
> Apparently somebody fixed it by accident. Looking ...
>

​Probably as a side-effect of:

"​Add view pg_hba_file_rules to display the contents of pg_hba.conf"

to v10 (you can probably find the commit hash faster than I).

David J.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-10-17 15:28:29 Re: BUG #14859: Config file parsing is allergic to spaces on last line of file
Previous Message Tom Lane 2017-10-17 14:44:17 Re: BUG #14859: Config file parsing is allergic to spaces on last line of file