Re: pgsql: Add basic TAP tests for psql's tab-completion logic.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Robert Haas <robertmhaas@gmail.com>, Christoph Berg <myon@debian.org>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2020-01-04T19:58:58Z
Lists: pgsql-hackers
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
Commits
-
Skip tab-completion tests if envar SKIP_READLINE_TESTS is defined.
- e7ee433137b6 13.0 landed
-
Minor style improvements for tab-completion test.
- 8c081a2f4e8e 13.0 landed
-
Avoid reading ~/.inputrc in tab-completion test, and revert other changes.
- 48e03583cd37 13.0 landed
-
Don't try to force TERM to a fixed value in tab-completion test.
- 7e42478186aa 13.0 landed
-
In tab-completion test, print out the value of TERM before changing it.
- 60ab7c80b4de 13.0 landed
-
Make tab-completion tests more robust.
- fac1c04feca6 13.0 landed
-
Further fixes for tab-completion TAP tests.
- 56a3921a2f51 13.0 landed
-
Add an ugly workaround for a bug in some recent libedit versions.
- ddd87d564508 13.0 landed
-
Add basic TAP tests for psql's tab-completion logic.
- 7c015045b914 13.0 cited
-
Fix running out of file descriptors for spill files.
- d20703805383 13.0 cited