pgsql: psql: Improve CREATE INDEX CONCURRENTLY tab completion

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: psql: Improve CREATE INDEX CONCURRENTLY tab completion
Date: 2016-01-13 02:23:56
Message-ID: E1aJB6K-0002un-IA@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Improve CREATE INDEX CONCURRENTLY tab completion

The completion of CREATE INDEX CONCURRENTLY was lacking in several ways
compared to a plain CREATE INDEX command:

- CREATE INDEX <name> ON completes table names, but didn't with
CONCURRENTLY.

- CREATE INDEX completes ON and existing index names, but with
CONCURRENTLY it only completed ON.

- CREATE INDEX <name> completes ON, but didn't with CONCURRENTLY.

These are now all fixed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b1bfb28b586a319052d96dd4dfd40a05505ea6ed

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-01-13 20:49:21 pgsql: Run pgindent on src/bin/pg_dump/*
Previous Message Simon Riggs 2016-01-12 07:57:07 pgsql: Add new user fn pg_current_xlog_flush_location()