Improve tab completion of IMPORT FOREIGN SCHEMA in psql
authorMichael Paquier <[email protected]>
Thu, 17 Sep 2020 02:49:29 +0000 (11:49 +0900)
committerMichael Paquier <[email protected]>
Thu, 17 Sep 2020 02:49:29 +0000 (11:49 +0900)
commit7307df16a05984396649db33df0faf6d840cd223
tree6ae3d1eff8e99a58413b4c14e3b631c60ba89cb3
parentbabef40c9a999949abe0ae8e82240cac3f154237
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
src/bin/psql/tab-complete.c