X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9A6D5475FC8 for ; Thu, 17 Apr 2003 10:44:38 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 40718475F5F for ; Thu, 17 Apr 2003 10:44:37 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h3HEiX316284; Thu, 17 Apr 2003 10:44:33 -0400 (EDT) From: Bruce Momjian Message-Id: <200304171444.h3HEiX316284@candle.pha.pa.us> Subject: Re: Require Assistance Solving Problem - erroneous pg_hba.conf In-Reply-To: <10547.1050590455@sss.pgh.pa.us> To: Tom Lane Date: Thu, 17 Apr 2003 10:44:33 -0400 (EDT) Cc: Greg Kelley , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-26.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/248 X-Sequence-Number: 8403 Tom Lane wrote: > "Greg Kelley" writes: > > pgsql log shows: > > > FATAL: Missing or erroneous pg_hba.conf file, see postmaster log for > > details > > "OG: parse_hba: invalid syntax in pg_hba.conf file at line 31, token " > > > Even the log entry doesn't look right - double quotes - and the .conf file > > certainly doesn't have 31 lines! > > Indeed. I think it's a Windows-newline issue: you probably edited the > config file with something that put in \r\n instead of \n. The > overstruck LOG is a dead giveaway... > > I thought we had fixed the various config file parsers to be reasonably > impervious to stray \r's, but you may have found a corner case where > it's not recognized as whitespace. Try getting rid of the \r's. Also, please don't wait a week and have your users frustrated before asking for assistance --- we are here to help. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073