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 1ipa1S-0008RB-2B for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 15:46:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipa1P-0007zI-Gs for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 15:46:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipa1P-0007zB-4a for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2020 15:46:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipa1M-0007ir-Q6 for pgsql-hackers@postgresql.org; Thu, 09 Jan 2020 15:46:53 +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 009Fkj3p007492; Thu, 9 Jan 2020 10:46:45 -0500 From: Tom Lane To: Robert Haas cc: Christoph Berg , Andres Freund , Amit Kapila , PostgreSQL Hackers Subject: Re: pgsql: Add basic TAP tests for psql's tab-completion logic. In-reply-to: References: <20200103110128.GA28967@msg.df7cb.de> <13708.1578059577@sss.pgh.pa.us> <25771.1578249042@sss.pgh.pa.us> <20200106105608.GB18560@msg.df7cb.de> <3764.1578323719@sss.pgh.pa.us> <20200106191303.GA3975@msg.df7cb.de> <19973.1578351988@sss.pgh.pa.us> <28773.1578436137@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 09 Jan 2020 09:45:20 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7490.1578584805.1@sss.pgh.pa.us> Date: Thu, 09 Jan 2020 10:46:45 -0500 Message-ID: <7491.1578584805@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > The level of effort you've put into this is extremely impressive, but > I can't shake the feeling that you're going to keep finding issues in > the test setup, the operating system, or the upstream libraries, > rather than bugs in PostgreSQL. Maybe this is all just one-time > stabilization effort, but... Yeah, this is pretty nearly what I feared would happen, given libedit's apparently-well-earned evil reputation. I suspect that the filename completion tests I posted over in that thread may expose another round of issues. If we can get past that, I think that expanding our test coverage for the rest of tab-complete.c should be relatively unproblematic, because there aren't very many other readline behaviors that tab-complete.c is depending on. One alternative is to give up on the idea of ever having any test coverage for tab-complete.c, which doesn't seem very desirable. Or we could disable the tests when using libedit, or provide some switch to make it easier for the user/packager to do so. In Debian's case, I suspect that they don't care about the behavior when using libedit, so skipping the test would be just fine for them. What they really ought to test is what happens after they sub in libreadline at runtime ... but I imagine that their dubious legal theories about all this would prevent them from actually doing that during the package build. regards, tom lane PS: Stepping back from the immediate problem, it's obviously better for all concerned if libedit is usable with Postgres. So if they're willing to patch problems, which we've found out they are, then coping with this stuff is a win in the long run.