Improve tab completion of IMPORT FOREIGN SCHEMA in psql

Michael Paquier <michael@paquier.xyz>

Commit: 7307df16a05984396649db33df0faf6d840cd223
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-09-17T02:49:29Z
Releases: 14.0
Improve tab completion of IMPORT FOREIGN SCHEMA in psql

It is not possible to get a list of foreign schemas as the server is not
known, so this provides instead a list of local schemas, which is more
useful than nothing if using a loopback server or having schema names
matching in the local and remote servers.

Author: Jeff Janes
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/CAMkU=1wr7Roj41q-XiJs=Uyc2xCmHhcGGy7J-peJQK-e+w=ghw@mail.gmail.com

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +11 −0

Discussion