- Notifications
You must be signed in to change notification settings - Fork5k
Commitf0cd909
committed
Further tweaks for psql's new tab-completion logic.
The behavior I proposed, of matching case only when only keywordsare available to complete, turns out to be too cute. It adds aboutas many problems as it removes. Simplify down to ilmari's originalproposal of just always matching case when completing a keyword.Also, I noticed while testing this that we've pessimized the behaviorfor qualified GUC names: the code is insisting that they bedouble-quoted, which was not the case before. Fix that by treatingGUC names as verbatim matches instead of possibly-schema-qualifiednames. (While it's tempting to try to split qualified GUC namesso that we *could* treat them with the schema-qualified-name codepath, that really isn't going to work in light of guc.c's willingnessto allow more than two name components.)Dagfinn Ilmari Mannsåker and Tom LaneDiscussion:https://postgr.es/m/445692.1644018081@sss.pgh.pa.us1 parentc5f5b4d commitf0cd909
2 files changed
+56
-31
lines changedLines changed: 18 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
343 |
| - | |
| 342 | + | |
344 | 343 |
| |
345 | 344 |
| |
346 | 345 |
| |
| |||
353 | 352 |
| |
354 | 353 |
| |
355 | 354 |
| |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 | 355 |
| |
361 | 356 |
| |
362 | 357 |
| |
| |||
410 | 405 |
| |
411 | 406 |
| |
412 | 407 |
| |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
413 | 425 |
| |
414 | 426 |
| |
415 | 427 |
| |
|
Lines changed: 38 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
257 | 257 |
| |
258 | 258 |
| |
259 | 259 |
| |
| 260 | + | |
| 261 | + | |
| 262 | + | |
260 | 263 |
| |
261 | 264 |
| |
262 |
| - | |
| 265 | + | |
263 | 266 |
| |
264 | 267 |
| |
265 | 268 |
| |
266 | 269 |
| |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
267 | 276 |
| |
268 | 277 |
| |
269 | 278 |
| |
| |||
1273 | 1282 |
| |
1274 | 1283 |
| |
1275 | 1284 |
| |
| 1285 | + | |
1276 | 1286 |
| |
1277 | 1287 |
| |
1278 | 1288 |
| |
| |||
2058 | 2068 |
| |
2059 | 2069 |
| |
2060 | 2070 |
| |
2061 |
| - | |
2062 |
| - | |
| 2071 | + | |
| 2072 | + | |
2063 | 2073 |
| |
2064 | 2074 |
| |
2065 | 2075 |
| |
| |||
4038 | 4048 |
| |
4039 | 4049 |
| |
4040 | 4050 |
| |
4041 |
| - | |
4042 |
| - | |
4043 |
| - | |
4044 |
| - | |
4045 |
| - | |
4046 |
| - | |
4047 |
| - | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
4048 | 4058 |
| |
4049 |
| - | |
4050 |
| - | |
4051 |
| - | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4052 | 4062 |
| |
4053 | 4063 |
| |
4054 | 4064 |
| |
| |||
4150 | 4160 |
| |
4151 | 4161 |
| |
4152 | 4162 |
| |
4153 |
| - | |
| 4163 | + | |
4154 | 4164 |
| |
4155 | 4165 |
| |
4156 | 4166 |
| |
| |||
4707 | 4717 |
| |
4708 | 4718 |
| |
4709 | 4719 |
| |
4710 |
| - | |
| 4720 | + | |
4711 | 4721 |
| |
4712 | 4722 |
| |
4713 | 4723 |
| |
| |||
5037 | 5047 |
| |
5038 | 5048 |
| |
5039 | 5049 |
| |
5040 |
| - | |
5041 |
| - | |
5042 |
| - | |
5043 |
| - | |
5044 |
| - | |
| 5050 | + | |
5045 | 5051 |
| |
5046 | 5052 |
| |
5047 | 5053 |
| |
| |||
5059 | 5065 |
| |
5060 | 5066 |
| |
5061 | 5067 |
| |
5062 |
| - | |
5063 |
| - | |
5064 |
| - | |
5065 |
| - | |
5066 |
| - | |
| 5068 | + | |
5067 | 5069 |
| |
5068 | 5070 |
| |
5069 | 5071 |
| |
| |||
5100 | 5102 |
| |
5101 | 5103 |
| |
5102 | 5104 |
| |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
| 5108 | + | |
| 5109 | + | |
| 5110 | + | |
| 5111 | + | |
| 5112 | + | |
| 5113 | + | |
| 5114 | + | |
| 5115 | + | |
5103 | 5116 |
| |
5104 | 5117 |
| |
5105 | 5118 |
| |
|
0 commit comments
Comments
(0)