Bug fix for tab completion of ALTER TABLE ... VALIDATE CONSTRAINT ...

David Fetter <david@fetter.org>

From: David Fetter <david@fetter.org>
To: PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2021-04-27T00:24:34Z
Lists: pgsql-hackers

Attachments

Folks,

I noticed that $subject completes with already valid constraints,
please find attached a patch that fixes it. I noticed that there are
other places constraints can be validated, but didn't check whether
similar bugs exist there yet.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Commits

  1. Tab completion: don't offer valid constraints in VALIDATE CONSTRAINT.