Tab completion not listing schema list for create/alter publication for all tables in schema

Поиск
Список
Период
Сортировка
От vignesh C
Тема Tab completion not listing schema list for create/alter publication for all tables in schema
Дата
Msg-id CALDaNm0hBO+tZqBWhBjTVxyET1GWANq5K9XpQ07atSxnFXbG7w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Tab completion not listing schema list for create/alter publication for all tables in schema  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I noticed that the following commands "CREATE PUBLICATION pub1 FOR ALL
TABLES IN SCHEMA" and  "ALTER PUBLICATION pub1 ADD ALL TABLES IN
SCHEMA" does not complete with the schema list. I feel this is because
of the following code in tab-complete.c:
.........
COMPLETE_WITH_QUERY_PLUS(Query_for_list_of_schemas
" AND nspname NOT LIKE E'pg\\\\_%'",
"CURRENT_SCHEMA");
.........
Here "pg\\\\_%" should be "pg\\\\_%%".
Attached a patch to handle this.
Thoughts?

Regards,
Vignesh

Вложения

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

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: BufferAlloc: don't take two simultaneous locks
Следующее
От: Melanie Plageman
Дата:
Сообщение: Re: Issue with pg_stat_subscription_stats