pgsql: Improve tab completion of ALTER INDEX/TABLE with SETSTATISTICS

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Improve tab completion of ALTER INDEX/TABLE with SETSTATISTICS
Дата
Msg-id E1gbfEu-0003sl-2G@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve tab completion of ALTER INDEX/TABLE with SET STATISTICS in psql

This fixes two issues with the completion of ALTER TABLE and ALTER INDEX
after SET STATISTICS is typed, trying to suggest schema objects while
the grammar only allows integers.

The tab completion of ALTER INDEX is made smarter by handling properly
more patterns.  COLUMN is an optional keyword, but as no column numbers
can be suggested yet as possible input simply adjust the completion so
as no incorrect queries are generated.

Author: Michael Paquier
Reviewed-by: Tatsuro Yamada
Discussion: https://postgr.es/m/20181219092255.GC680@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f89ae34ab8b4d9e9ce8af6bd889238b0ccff17cb

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


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Prioritize history files when archiving
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix portability failure introduced in commits d2b0b60e7 et al.