Re: refactor AlterDomainAddConstraint (alter domain add constraint)

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: jian he <jian.universality@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-01-16T13:45:51Z
Lists: pgsql-hackers
I have committed the part of this patch that removes the switch 
statement in AlterDomainAddConstraint().  That one is dead code.

I'll study the other discussion a bit more.  I agree the current code 
isn't satisfactory.



Commits

  1. Fix bogus grammar for a CREATE CONSTRAINT TRIGGER error

  2. Remove dead code