pgsql: Improve tab completion of IMPORT FOREIGN SCHEMA in psql

Started by Michael Paquieralmost 6 years ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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: /messages/by-id/CAMkU=1wr7Roj41q-XiJs=Uyc2xCmHhcGGy7J-peJQK-e+w=ghw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7307df16a05984396649db33df0faf6d840cd223

Modified Files
--------------
src/bin/psql/tab-complete.c | 11 +++++++++++
1 file changed, 11 insertions(+)