Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inpZh-0005vV-2o for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jan 2020 19:59:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inpZf-0005J3-Qw for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jan 2020 19:59:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inpZf-0005Iw-I1 for pgsql-hackers@lists.postgresql.org; Sat, 04 Jan 2020 19:59:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1inpZe-0000Pl-4j for pgsql-hackers@postgresql.org; Sat, 04 Jan 2020 19:59:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 004JwwtG023182; Sat, 4 Jan 2020 14:58:58 -0500 From: Tom Lane To: Peter Geoghegan cc: Robert Haas , Christoph Berg , PostgreSQL Hackers Subject: Re: pgsql: Add basic TAP tests for psql's tab-completion logic. In-reply-to: <22817.1578167447@sss.pgh.pa.us> References: <20200103170226.GB32629@msg.df7cb.de> <26339.1578072930@sss.pgh.pa.us> <20200103174839.GD32629@msg.df7cb.de> <22669.1578104202@sss.pgh.pa.us> <25298.1578106280@sss.pgh.pa.us> <3055.1578115809@sss.pgh.pa.us> <8038.1578119995@sss.pgh.pa.us> <9256.1578121229@sss.pgh.pa.us> <25739.1578161968@sss.pgh.pa.us> <22817.1578167447@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 04 Jan 2020 14:50:47 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23180.1578167938.1@sss.pgh.pa.us> Date: Sat, 04 Jan 2020 14:58:58 -0500 Message-ID: <23181.1578167938@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Seeing that you're also having issues with a stack involving > libtinfo.so.5, here's my theory: libtinfo version 5 is brain-dead > about whether it needs to issue cursor repositioning commands, and > tends to do so even when the cursor is in the right place already. > Version 6 fixed that, which is why we're not seeing these escape > sequences on any of the libedit-using buildfarm critters. Nope, the buildfarm just blew up that theory: Andres' critters are failing in the wake of fac1c04fe, with symptoms exactly like those of my franken-libedit build. So newer libtinfo doesn't fix it. What has to have broken those machines was the change to explicitly force TERM to "xterm". Now I'm wondering what their prevailing setting was before that. Maybe it was undef, or some absolutely vanilla thing that prevents libtinfo from thinking it can use any escape sequences at all. I'm going to go find out, because if we can use that behavior globally, it'd be a heck of a lot safer solution than the path of dealing with escape sequences explicitly. regards, tom lane