Remove dead code As of commit 9895b35cb88, AlterDomainAddConstraint() can only be called with constraints of type CONSTR_CHECK and CONSTR_NOTNULL. So all the code to check for and reject other constraint type values is dead and can be removed.
Author: jian he <jian.universal...@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/cacjufxhitd5lglbssapshhtdwxt0vivkthinkyw-skbx93t...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7407b2d48cf37bc8847ae6c47dde2164ef2faa34 Modified Files -------------- src/backend/commands/typecmds.c | 54 ++--------------------------------------- 1 file changed, 2 insertions(+), 52 deletions(-)