pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Kelley <gkelley@britannicaviation.com>
Cc: pgsql-admin@postgresql.org, Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Joe Conway <mail@joeconway.com>
Subject: Re: Require Assistance Solving Problem - erroneous pg_hba.conf
Date: Thu, 17 Apr 2003 12:53:08 -0400
Message-ID: <11492.1050598388@sss.pgh.pa.us> (raw)
In-Reply-To: <01e501c304d4$28732b00$3501a8c0@greg>
References: <01e501c304d4$28732b00$3501a8c0@greg>

"Greg Kelley" <gkelley@britannicaviation.com> 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:

inline patch 1: postgresql-7.3.2/src/backend/libpq/hba.c (+2/-0 lines) download inline-1.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

view thread (8+ messages)  latest in thread

Message-ID: <11492.1050598388@sss.pgh.pa.us>
Permalink:  ../11492.1050598388@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11492.1050598388@sss.pgh.pa.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gkelley@britannicaviation.com, pgman@candle.pha.pa.us, mail@joeconway.com
  Subject: Re: Require Assistance Solving Problem - erroneous pg_hba.conf
  In-Reply-To: <11492.1050598388@sss.pgh.pa.us>
  References: <01e501c304d4$28732b00$3501a8c0@greg> <11492.1050598388@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox