From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
To: Tom Lane PostgreSQL <tgl@sss.pgh.pa.us>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: psql behavior change on upgrade from version 12.x to 13.1
Date: Tue, 9 Feb 2021 12:49:36 -0800
Message-ID: <71fb97c3-e728-ea7a-fa97-166418a53e08@aklaver.com> (raw)
In-Reply-To: <CCB29754-971F-4266-A08B-174C73757507@yugabyte.com>
References: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com>
<882289.1612899802@sss.pgh.pa.us>
<3308FF9B-C01C-476B-8CE9-0F2C9ACCC542@yugabyte.com>
<883658.1612901512@sss.pgh.pa.us>
<CCB29754-971F-4266-A08B-174C73757507@yugabyte.com>
On 2/9/21 12:19 PM, Bryn Llewellyn wrote:
>
>
> On 09-Feb-2021, at 12:11, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Bryn Llewellyn <bryn@yugabyte.com> writes:
>> Here’s what I get when I do "otool -L /usr/local/bin/psql";
>
>> /usr/local/bin/psql:
>> /usr/local/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.13.0)
>> /usr/local/opt/readline/lib/libreadline.8.dylib (compatibility version 8.0.0, current version 8.0.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0)
>
> Right, so that's using a version of libreadline that's supplied by
> Homebrew (the /usr/local/opt path is the giveaway on that).
>
> I don't know whether these things represent an intentional change
> of libreadline's behavior in Homebrew's build, or a bug, but in
> either case you should take the issue to the Homebrew support forums.
> If it's intentional, I imagine there's a way to get the old behavior
> back.
>
> Also, libreadline is fairly configurable, so maybe this boils down
> to some unintentional change in your ~/.inputrc ?
>
> regards, tom lane
>
> —————
> > Thank you very much, Tom. It seems, then, that we have the
“microscopic” explanation. I’ll have to to a fair bit of research to
find out what to do to fix this problem.
I would start here:
https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/postgresql.rb
and contact the maintainer:
https://github.com/MikeMcQuaid
FYI, the formula points at another formula for readline:
def install
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib}
-L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include}
-I#{Formula["readline"].opt_include}"
which can be found here:
https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/readline.rb>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, bryn@yugabyte.com, tgl@sss.pgh.pa.us
Subject: Re: psql behavior change on upgrade from version 12.x to 13.1
In-Reply-To: <71fb97c3-e728-ea7a-fa97-166418a53e08@aklaver.com>
References: <7CCA6956-D22C-4E4F-B7B4-A450A062BF59@yugabyte.com> <882289.1612899802@sss.pgh.pa.us> <3308FF9B-C01C-476B-8CE9-0F2C9ACCC542@yugabyte.com> <883658.1612901512@sss.pgh.pa.us> <CCB29754-971F-4266-A08B-174C73757507@yugabyte.com> <71fb97c3-e728-ea7a-fa97-166418a53e08@aklaver.com>
* 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