postgresql/src
Tom Lane 9b181b0363 In psql's tab completion, change most TailMatches patterns to Matches.
In the refactoring in commit d37b816dc9,
we mostly kept to the original design whereby only the last few words
on the line were matched to identify a completable pattern.  However,
after commit d854118c8d, there's really
no reason to do it like that: where it's sensible, we can use patterns
that expect to match the entire input line.  And mostly, it's sensible.
Matching the entire line greatly reduces the odds of a false match that
leads to offering irrelevant completions.  Moreover (though I've not
tried to measure this), it should make tab completion faster since
many of the patterns will be discarded after a single integer comparison
that finds that the wrong number of words appear on the line.

There are certain identifiable places where we still need to use
TailMatches because the statement in question is allowed to appear
embedded in a larger statement.  These are just a small minority of
the existing patterns, though, so the benefit of switching where
possible is large.

It's possible that this patch has removed some within-line matching
behaviors that are in fact desirable, but we can put those back when
we get complaints.  Most of the removed behaviors are certainly silly.

Michael Paquier, with some further adjustments by me
2016-01-04 20:08:08 -05:00
..
backend Adjust behavior of row_security GUC to match the docs. 2016-01-04 12:21:41 -05:00
bin In psql's tab completion, change most TailMatches patterns to Matches. 2016-01-04 20:08:08 -05:00
common Update copyright for 2016 2016-01-02 13:33:40 -05:00
include Update copyright for 2016 2016-01-02 13:33:40 -05:00
interfaces Update copyright for 2016 2016-01-02 13:33:40 -05:00
makefiles
pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
port Update copyright for 2016 2016-01-02 13:33:40 -05:00
template
test Adjust behavior of row_security GUC to match the docs. 2016-01-04 12:21:41 -05:00
timezone Update copyright for 2016 2016-01-02 13:33:40 -05:00
tools Make copyright.pl cope with nonstandard case choices in copyright notices. 2016-01-02 14:45:21 -05:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
nls-global.mk
win32.mak