Thread: pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR

pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR

From
Tom Lane
Date:
Tab completion: don't offer valid constraints in VALIDATE CONSTRAINT.

Improve psql so that "ALTER TABLE foo VALIDATE CONSTRAINT <TAB>"
only offers not-convalidated entries.  While it's not formally
wrong to offer validated ones, there's not much point either,
and it can save some typing if we incorporate this knowledge.

David Fetter, reviewed by Aleksander Alekseev

Discussion: https://postgr.es/m/20210427002433.GB17834@fetter.org

Branch
------
master

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

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