Fix case sensitivity in psql's tab completion for GUC names.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b5607b0746f40b3f5b38004c64ccc9697ee1e222
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-04-13T20:26:34Z
Releases: 15.0
Fix case sensitivity in psql's tab completion for GUC names.

Input for these should be case-insensitive, but was not completely
so.  Comparing to the similar queries for timezone names, I realized
that we'd missed forcing the comparison pattern to lower-case.
With that, it behaves as I expect.

While here, flatten the sub-selects in these queries; I don't
find that those add any readability.

Discussion: https://postgr.es/m/3369130.1649348542@sss.pgh.pa.us

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +8 −14

Discussion