pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15705: psql autocompletion is not always correct with latest libedit
2+ messages / 2 participants
[nested] [flat]
* BUG #15705: psql autocompletion is not always correct with latest libedit
@ 2019-03-19 19:17 PG Bug reporting form <noreply@postgresql.org>
2019-03-19 21:30 ` Re: BUG #15705: psql autocompletion is not always correct with latest libedit Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2019-03-19 19:17 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: apyhalov@gmail.com
The following bug has been logged on the website:
Bug reference: 15705
Logged by: Alexander Pyhalov
Email address: apyhalov@gmail.com
PostgreSQL version: 11.2
Operating system: OpenIndiana
Description:
After updating libedit from 20170329-3.1 to 20181209-3.1 we see the
following issue in psql:
while typing "create user test encr<TAB>" I see:
> create user test encrypted\ password
(note \ before space)
The issue seems to be in
https://github.com/NetBSD/src/commit/47081400d868e1d6dd5629bea97c599c48404839
- now libedit treats input as file names and escapes it accordingly.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #15705: psql autocompletion is not always correct with latest libedit
2019-03-19 19:17 BUG #15705: psql autocompletion is not always correct with latest libedit PG Bug reporting form <noreply@postgresql.org>
@ 2019-03-19 21:30 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2019-03-19 21:30 UTC (permalink / raw)
To: apyhalov@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
PG Bug reporting form <noreply@postgresql.org> writes:
> After updating libedit from 20170329-3.1 to 20181209-3.1 we see the
> following issue in psql:
> while typing "create user test encr<TAB>" I see:
>> create user test encrypted\ password
> (note \ before space)
> The issue seems to be in
> https://github.com/NetBSD/src/commit/47081400d868e1d6dd5629bea97c599c48404839
> - now libedit treats input as file names and escapes it accordingly.
I think you need to complain to the libedit authors, not us.
While I can't find any API spec anywhere for libedit's completion
functionality, it seems to be meant to match GNU readline,
and the GNU docs are pretty clear that the results of
rl_attempted_completion_function should be taken literally.
I think they injected the extra quoting at the wrong level ...
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-03-19 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 19:17 BUG #15705: psql autocompletion is not always correct with latest libedit PG Bug reporting form <noreply@postgresql.org>
2019-03-19 21:30 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox