pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR
Date
Msg-id E1n4WWk-0004yV-Lj@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Handle mixed returnable and non-returnable columns better in IOS
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_dump: Refactor dumpDatabase()