Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9ZxF-0005oC-OB for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 20:49:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9ZxD-0000m8-5v for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 20:49:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9ZxB-0000m0-Mz for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 20:49:46 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9Zx6-0003EN-R2 for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 20:49:45 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7FA005C0073; Tue, 9 Feb 2021 15:49:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 09 Feb 2021 15:49:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=G GCCHST/vWkvmiZA757m2Zrq8vNYgxxP6oTKUdOJeqg=; b=X8pGwXDseaZGYWOnx 2jW1Z7XdqBqEEwDGq+/PecWUVVP0EOnn8mUl09kZGDXBXWCguEhIi5KkRRcg7kje uJUeAuGcBKau2Rcu6YHfjizdBy6I1+CLXXfb4NomNENzzwhV45pvYTeVhNTzpsTq pIYqKqUsq0Mbk/D5fHrzgz2FIgBcA3nUYaxCleodf8gETjlCfIl6C1DwqnGAoL4a vDhgNx9fK0cDs+oT8cLXMm192vFzKSH9t7zune5IAnRfLacPvG7Xdte9jNj8dBwr 0vxDJAFmgrPALgqykixPpe1iJ7vqSVhT6Gzfuhic1qZBk5ctNOX1QDp6YYoYnVtC qQO7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=GGCCHST/vWkvmiZA757m2Zrq8vNYgxxP6oTKUdOJe qg=; b=fxUKe6w0s4If+bZRB+B1LBQ7VoBf4QnIlK9HOx+4BJq92qeL4J2a3hAn8 hBXt5PUrPHZsG7y4kVPc3FSRDE1RCRTIroM0DKLdSSu6jpQRkDmKVrpuhyFOtJlX H0yruib3+dV+akDGyYRvykXYO7XVPK51rEjQ+XKAqMh6k3VbgV50AIImI1in7JNS ubTHljuYtxiKOouyxuReljGELxiw7KrHTtMdajIWjPAQNosyy9V4CtvDIKdQQ9bc tPo2IyiWG9xlcDs/fC7Nq95RBLwDurdvQDwHz1rfPrWWwm63JPyZLhsJINxMyGbu s3SmFppjKUxis4aSnWKpMYZT2XsuA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheehgddugeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetudeutdfhheffvdetvedvleetgfettddufedvheej geekfefhhedvfedutdeivdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppe eljedruddufedrvddujedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-217-27.tukw.qwest.net [97.113.217.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C56E24005D; Tue, 9 Feb 2021 15:49:37 -0500 (EST) Subject: Re: psql behavior change on upgrade from version 12.x to 13.1 To: Bryn Llewellyn , Tom Lane PostgreSQL Cc: pgsql-general list 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> From: Adrian Klaver Message-ID: <71fb97c3-e728-ea7a-fa97-166418a53e08@aklaver.com> Date: Tue, 9 Feb 2021 12:49:36 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/9/21 12:19 PM, Bryn Llewellyn wrote: > > > On 09-Feb-2021, at 12:11, Tom Lane wrote: > > Bryn Llewellyn 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