From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR
Date: Mon, 03 Jan 2022 23:14:06 +0000
Message-ID: <E1n4WWk-0004yV-Lj@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Tab completion: don't offer valid constraints in VALIDATE CONSTR
In-Reply-To: <E1n4WWk-0004yV-Lj@gemulon.postgresql.org>
References: <E1n4WWk-0004yV-Lj@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox