pgsql: Add an ugly workaround for a bug in some recent libedit versions

Tom Lane <[email protected]> Fri, 03 Jan 2020 16:15:41 +0000
Newsgroups gmane.comp.db.postgresql.devel.cvs
Message-ID <[email protected]>
Add an ugly workaround for a bug in some recent libedit versions.

Debian unstable is shipping a broken version of libedit: it de-escapes
words before passing them to the application's tab completion function,
preventing us from recognizing backslash commands.  Fortunately,
we have enough information available to dig the original text out of
rl_line_buffer, so ignore the string argument and do that.

I view this as a temporary workaround to get the affected buildfarm
members back to green in the wake of 7c015045b.  I hope we can get
rid of it once somebody fixes Debian's libedit; hence, no back-patch,
at least for now.

Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ddd87d564508bb1c80aac0a4439cfe74a3c203a9

Modified Files
--------------
src/bin/psql/tab-complete.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)