postgresql/src/bin
Tom Lane a4ce93395e Don't treat complete_from_const as equivalent to complete_from_list.
Commit 4f3b38fe2 supposed that complete_from_const() is equivalent to
the one-element-list case of complete_from_list(), but that's not
really true at all.  complete_from_const() supposes that the completion
is certain enough to justify wiping out whatever the user typed, while
complete_from_list() will only provide completions that match the
word-so-far.

In practice, given the lame parsing technology used by tab-complete.c,
it's fairly hard to believe that we're *ever* certain enough about
a completion to justify auto-correcting user input that doesn't match.

Hence, remove the inappropriate unification of the two cases.
As things now stand, complete_from_const() is used only for the
situation where we have no matches and we need to keep readline
from applying its default complete-with-file-names behavior.

This (mis?) behavior actually exists much further back, but
I'm hesitant to change it in released branches.  It's not too
late for v12, though, especially seeing that the aforesaid
commit is new in v12.

Per gripe from Ken Tanzer.

Discussion: https://postgr.es/m/CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com
2019-07-02 14:04:42 -04:00
..
initdb pgindent run prior to branching v12. 2019-07-01 12:37:52 -04:00
pg_archivecleanup Translation updates 2019-06-17 15:30:20 +02:00
pg_basebackup Translation updates 2019-06-17 15:30:20 +02:00
pg_checksums Add missing serial commas 2019-07-01 13:07:14 +02:00
pg_config Translation updates 2019-06-17 15:30:20 +02:00
pg_controldata Translation updates 2019-06-17 15:30:20 +02:00
pg_ctl Translation updates 2019-06-17 15:30:20 +02:00
pg_dump Add missing serial commas 2019-07-01 13:07:14 +02:00
pg_resetwal Translation updates 2019-06-17 15:30:20 +02:00
pg_rewind Translation updates 2019-06-17 15:30:20 +02:00
pg_test_fsync Translation updates 2019-06-17 15:30:20 +02:00
pg_test_timing Translation updates 2019-06-17 15:30:20 +02:00
pg_upgrade Fix regression tests to use only global names beginning with "regress_". 2019-06-29 11:09:03 -04:00
pg_waldump Translation updates 2019-06-17 15:30:20 +02:00
pgbench Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
pgevent Update copyright for 2019 2019-01-02 12:44:25 -05:00
psql Don't treat complete_from_const as equivalent to complete_from_list. 2019-07-02 14:04:42 -04:00
scripts Translation updates 2019-06-17 15:30:20 +02:00
Makefile Rename pg_verify_checksums to pg_checksums 2019-03-13 10:43:20 +09:00