pgsql: Simplify tab completion of extension versions, redux.

2022-07-03 Thread Tom Lane
Simplify tab completion of extension versions, redux. After commit 662dbe2c8, psql tab completion didn't conveniently support the case of "ALTER EXTENSION foo UPDATE". It'd always add "TO", which is fine if you want to specify a target version but not if you don't ... and surely the latter is the

pgsql: Simplify tab completion of extension versions, redux.

2022-07-03 Thread Tom Lane
Simplify tab completion of extension versions, redux. After commit 662dbe2c8, psql tab completion didn't conveniently support the case of "ALTER EXTENSION foo UPDATE". It'd always add "TO", which is fine if you want to specify a target version but not if you don't ... and surely the latter is the

pgsql: Simplify tab completion of extension versions.

2022-06-21 Thread Tom Lane
Simplify tab completion of extension versions. Second thoughts about 9cd43f6cb: given that we're staying bug-compatible with the old behavior of using double not single quotes for extension versions, we can simplify this completion code by pretending that extension versions *are* identifiers, and