Improve tab completion of IMPORT FOREIGN SCHEMA with \h in psql
authorMichael Paquier <michael@paquier.xyz>
Fri, 19 Mar 2021 00:18:41 +0000 (09:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 19 Mar 2021 00:18:41 +0000 (09:18 +0900)
commit5b2266e33fc74142d23685bdf54f64ad598fbdea
tree5216a5057d0851e237670f8bcbd75f6192418501
parent1d581ce7129d7a33cd4ad27f8f246abfa1fd2db9
Improve tab completion of IMPORT FOREIGN SCHEMA with \h in psql

Only "IMPORT" was showing as result of the completion, while IMPORT
FOREIGN SCHEMA is the only command using this keyword in first
position.  This changes the completion to show the full command name
instead of just "IMPORT".

Reviewed-by: Georgios Kokolatos, Julien Rouhaud
Discussion: https://postgr.es/m/YFL6JneBiuMWYyoh@paquier.xyz
src/bin/psql/tab-complete.c