Re: tab completion of IMPORT FOREIGN SCHEMA - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tab completion of IMPORT FOREIGN SCHEMA
Date
Msg-id 3063890.1596990823@sss.pgh.pa.us
Whole thread Raw
In response to tab completion of IMPORT FOREIGN SCHEMA  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: tab completion of IMPORT FOREIGN SCHEMA  (Michael Paquier <michael@paquier.xyz>)
List 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 by date:

Previous
From: Jeff Janes
Date:
Subject: tab completion of IMPORT FOREIGN SCHEMA
Next
From: Justin Pryzby
Date:
Subject: Re: 回复:how to create index concurrently on partitioned table