Remove dead code
Peter Eisentraut <peter@eisentraut.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +2 −52 |
Discussion
- refactor AlterDomainAddConstraint (alter domain add constraint) 11 messages · 2024-12-06 → 2025-11-26