pgsql: Improve tab completion of REINDEX in psql

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve tab completion of REINDEX in psql
Date: 2020-08-11 05:38:30
Message-ID: E1k5MzW-0001UL-G5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f75b454134cce6a67a9bcdb01b5c018221dd359

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

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2020-08-11 19:13:04 pgsql: Rename VariableCacheData.nextFullXid to nextXid.
Previous Message Peter Eisentraut 2020-08-10 22:09:21 pgsql: Replace remaining StrNCpy() by strlcpy()