Re: tab completion of IMPORT FOREIGN SCHEMA

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tab completion of IMPORT FOREIGN SCHEMA
Дата
Msg-id 3063890.1596990823@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tab completion of IMPORT FOREIGN SCHEMA  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: tab completion of IMPORT FOREIGN SCHEMA  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> It accidentally (even before this patch) completes "IMPORT FOREIGN SCHEMA"
> with a list of local schemas.  This is probably wrong, but I find this
> convenient as I often do this in a loop-back setup where the list of
> foreign schema would be the same as the local ones.  So I don't countermand
> that behavior here.

I don't see how psql could obtain a "real" list of foreign schemas
from an arbitrary FDW, even if it magically knew which server the
user would specify later in the command.  So this behavior seems fine.
It has some usefulness, while not completing at all would have none.

It might be a good idea to figure out where that completion is
happening and annotate it about this point.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: tab completion of IMPORT FOREIGN SCHEMA
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: 回复:how to create index concurrently on partitioned table