Improve tab completion of REINDEX in psql

Michael Paquier <michael@paquier.xyz>

Commit: 1f75b454134cce6a67a9bcdb01b5c018221dd359
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-08-11T05:37:38Z
Releases: 14.0
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

Files

PathChange+/−
src/bin/psql/tab-complete.c modified +29 −9

Discussion