Improve tab completion of REINDEX in psql
authorMichael Paquier <michael@paquier.xyz>
Tue, 11 Aug 2020 05:37:38 +0000 (14:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 11 Aug 2020 05:37:38 +0000 (14:37 +0900)
commit1f75b454134cce6a67a9bcdb01b5c018221dd359
treee7e479990bf17469276524eb7cb755b0ccb444db
parent1784f278a63866cc144fcd0a2127cadba6a2b7f8
Improve tab completion of REINDEX in psql

This allows the tab completion of REINDEX to handle an optional
parenthesized list of options.  This case is more complicated than
VACUUM or ANALYZE because of CONCURRENTLY and the different object types
to consider with the reindex.

Author: Justin Pryzby
Reviewed-by: Alexey Kondratov, Michael Paquier
Discussion: https://postgr.es/m/20200403182712.GR14618@telsasoft.com
src/bin/psql/tab-complete.c