Re: psql tab auto-complete for CREATE PUBLICATION

Поиск
Список
Период
Сортировка
Искать
От
vignesh C
Тема
Re: psql tab auto-complete for CREATE PUBLICATION
Дата
Msg-id
CALDaNm2PLn2DafBOsCH7VLp3OdtDYGdmW9ibd0cTMYP-qupQfQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
psql tab auto-complete for CREATE PUBLICATION Peter Smith <smithpb2250@gmail.com>
Re: psql tab auto-complete for CREATE PUBLICATION vignesh C <vignesh21@gmail.com>
Re: psql tab auto-complete for CREATE PUBLICATION Fujii Masao <masao.fujii@oss.nttdata.com>
Re: psql tab auto-complete for CREATE PUBLICATION Peter Smith <smithpb2250@gmail.com>
On Fri, Jul 9, 2021 at 1:06 PM Peter Smith  wrote:
>
> I found that the psql tab auto-complete was not working for some cases
> of CREATE PUBLICATION [1].
>
> CREATE PUBLICATION name
>     [ FOR TABLE [ ONLY ] table_name [ * ] [, ...]
>       | FOR ALL TABLES ]
>     [ WITH ( publication_parameter [= value] [, ... ] ) ]
>
> ~~~
>
> For example, the following scenarios did not work as I was expecting:
>
> "create publication mypub for all tables " TAB --> expected complete
> with "WITH ("
>
> "create publication mypub for all ta" TAB --> expected complete with "TABLES"
>
> "create publication mypub for all tables w" TAB --> expected complete
> with "WITH ("
>
> "create publication mypub for table mytable " TAB --> expected
> complete with "WITH ("
>
> ~~~
>
> PSA a small patch which seems to improve at least for those
> aforementioned cases.
>
> Now results are:
>
> "create publication mypub for all tables " TAB --> "create publication
> mypub for all tables WITH ( "
>
> "create publication mypub for all ta" TAB --> "create publication
> mypub for all tables "
>
> "create publication mypub for all tables w" TAB --> "create
> publication mypub for all tables with ( "
>
> "create publication mypub for table mytable " TAB --> "create
> publication mypub for table mytable WITH ( "
>

Thanks for the patch, the changes look good to me.

Regards,
Vignesh


В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата:
От: vignesh C
Дата:
FAQ
Re: psql tab auto-complete for CREATE PUBLICATION - Архив списков рассылки pgsql-hackers : Компания Postgres Professional