X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 99E8E475458 for ; Thu, 17 Apr 2003 12:53:12 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7BA574762BB for ; Thu, 17 Apr 2003 12:53:11 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3HGr8U6011493; Thu, 17 Apr 2003 12:53:09 -0400 (EDT) To: "Greg Kelley" Cc: pgsql-admin@postgresql.org, Bruce Momjian , Joe Conway Subject: Re: Require Assistance Solving Problem - erroneous pg_hba.conf In-reply-to: <01e501c304d4$28732b00$3501a8c0@greg> References: <01e501c304d4$28732b00$3501a8c0@greg> Comments: In-reply-to "Greg Kelley" message dated "Thu, 17 Apr 2003 07:26:15 -0400" Date: Thu, 17 Apr 2003 12:53:08 -0400 Message-ID: <11492.1050598388@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-38.6 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,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/250 X-Sequence-Number: 8405 "Greg Kelley" writes: > A RedHat Upgrade Saturday from 8.0 to 9.0 just did a 'minor' version > upgrade from 7.3.1 to 7.3.2. > [ and broke his pg_hba.conf ] Ah-hah, I now know where the behavioral change came from: the Red Hat RPMs contain this patch: --- postgresql-7.3.2/src/backend/libpq/hba.c.sopwith 2003-01-09 09:09:01.000000000 -0500 +++ postgresql-7.3.2/src/backend/libpq/hba.c 2003-01-09 09:09:09.000000000 -0500 @@ -72,11 +72,13 @@ * Some standard C libraries, including GNU, have an isblank() function. * Others, including Solaris, do not. So we have our own. */ +#ifndef isblank static bool isblank(const char c) { return c == ' ' || c == '\t' || c == '\r'; } +#endif /* which on RHL 9 causes the system definition of isblank() to be substituted for Postgres'. That means \r is no longer treated as whitespace, as it was in prior versions. There is a fix in our CVS tree that prevents this problem and restores the old treatment of \r, but for now you gotta get rid of the Windows- style newlines. regards, tom lane