forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc3e3844
committed
Make psql's \set display variables in alphabetical order.
"\set" with no arguments displays all defined variables, but it does soin the order that they appear in variables.c's list, which previouslywas mostly creation order. That makes the list ugly and hard to findthings in, and it exposes some psql implementation details to users.(For instance, ordinary variables will move to the bottom of the listif unset and set again, but variables that have hooks won't.)Fix that by keeping the list in alphabetical order at all times, whichisn't much more complicated than breaking out of the insertion searchloops once we reach an entry that should be after the one to be inserted.Discussion:https://postgr.es/m/31785.1485900786@sss.pgh.pa.us1 parent86322dc commitc3e3844
1 file changed
+20
-5
lines changedLines changed: 20 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 |
| |
47 | 50 |
| |
48 | 51 |
| |
| |||
74 | 77 |
| |
75 | 78 |
| |
76 | 79 |
| |
77 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 |
| |
79 | 84 |
| |
80 | 85 |
| |
81 | 86 |
| |
| 87 | + | |
| 88 | + | |
82 | 89 |
| |
83 | 90 |
| |
84 | 91 |
| |
| |||
247 | 254 |
| |
248 | 255 |
| |
249 | 256 |
| |
250 |
| - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
251 | 260 |
| |
252 | 261 |
| |
253 | 262 |
| |
| |||
293 | 302 |
| |
294 | 303 |
| |
295 | 304 |
| |
| 305 | + | |
| 306 | + | |
296 | 307 |
| |
297 | 308 |
| |
298 | 309 |
| |
| |||
303 | 314 |
| |
304 | 315 |
| |
305 | 316 |
| |
306 |
| - | |
| 317 | + | |
307 | 318 |
| |
308 | 319 |
| |
309 | 320 |
| |
| |||
343 | 354 |
| |
344 | 355 |
| |
345 | 356 |
| |
346 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
347 | 360 |
| |
348 | 361 |
| |
349 | 362 |
| |
| |||
354 | 367 |
| |
355 | 368 |
| |
356 | 369 |
| |
| 370 | + | |
| 371 | + | |
357 | 372 |
| |
358 | 373 |
| |
359 | 374 |
| |
| |||
362 | 377 |
| |
363 | 378 |
| |
364 | 379 |
| |
365 |
| - | |
| 380 | + | |
366 | 381 |
| |
367 | 382 |
| |
368 | 383 |
| |
|
0 commit comments
Comments
(0)