Remove dead code

Peter Eisentraut <peter@eisentraut.org>

Commit: 7407b2d48cf37bc8847ae6c47dde2164ef2faa34
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-01-16T13:37:28Z
Releases: 18.0
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.universality@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CACJufxHitd5LGLBSSAPShhtDWxT0ViVKTHinkYW-skBX93TcpA@mail.gmail.com

Files

PathChange+/−
src/backend/commands/typecmds.c modified +2 −52

Discussion