Re: psql and readline

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk>, Peter Mount <peter(at)retep(dot)org(dot)uk>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and readline
Date: 2003-02-19 01:03:09
Message-ID: 200302190103.h1J139P20810@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ross J. Reedstrom wrote:
> On Wed, Feb 19, 2003 at 12:03:44AM +0100, Peter Eisentraut wrote:
> > Ross J. Reedstrom writes:
> >
> > > Yes, BSD systems that install libedit directly in /usr/include (or into
> > > readline), like Patrick's, don't need it, but mine do. Is there some
> > > reason we _shouldn't_ support this configuration?
> >
> > I don't like adding code to support every configuration that someone
> > dreamed up but no one actually needs. Readline installs the header files
> > into <readline/readline.h> and if someone thinks they can change that they
> > deserve to pay the price. The configure script is already slow enough
> > without this.
>
> Hmm, isn't this exactly what configure is for? To find out where this
> particular system installs all the bits and pieces? Note that even without
> the test for editline/readline.h, the existing configure looks in two
> placesi for readline functionality, so doesn't match your comment,
> above. As for 'someone changing that' paying the price, I think it's
> reasonable for an incomplete compatability library to install into a
> different location: if it claims to be readline/readline.h, it better
> support the entire API, in my book.
>
> Regardless of all of the above, I'm willing to let this part go. Note that
> I can no longer easily test libedit functionality in that case, however.
> I leave it up to Bruce (or whomever applies the patch)

Configure is for such tests --- you are right, and we already test two
places. I doubt there is any measurable change in testing 10 locations.
Just allowing you to test libedit is enough to justify the addition.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Badger 2003-02-19 01:13:39 Real-world usage example
Previous Message Tom Lane 2003-02-19 00:32:31 Re: Version 7.2.3 Vacuum abnormality