Re: [Novice] questions on pg_hba.conf and stopping postmaster in cygwin - Mailing list pgsql-novice

From Tom Lane
Subject Re: [Novice] questions on pg_hba.conf and stopping postmaster in cygwin
Date
Msg-id 24039.1018305005@sss.pgh.pa.us
Whole thread Raw
In response to [Novice] questions on pg_hba.conf and stopping postmaster in cygwin  ("Juliet May" <jmay@speark.com>)
Responses Re: [Novice] questions on pg_hba.conf and stopping
List pgsql-novice
"Juliet May" <jmay@speark.com> writes:
> The postmaster log says ' "arse_hba: invalid syntax in pg_hba.conf file at =
> line 1, token "trust'

This looks like you've got DOS-style newlines (CR/LF) rather than
Unix-style (LF only) in the pg_hba.conf file.  The pg_hba code is
picky about that.  (Probably it shouldn't be, but that won't help you
today.)

> I edited the pg_hba.conf file in notepad and I think that could be causing =
> the error. Is there another option for editing the file that I should use?

Dunno if Notepad has heard that there are other conventions for line
endings besides Microsoft's.  Can anyone recommend a better choice of
editor?

            regards, tom lane

pgsql-novice by date:

Previous
From: "Juliet May"
Date:
Subject: [Novice] questions on pg_hba.conf and stopping postmaster in cygwin
Next
From: "Juliet May"
Date:
Subject: Re: [Novice] questions on pg_hba.conf and stopping postmaster in cygwin