| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Remove dead code |
| Date: | 2025-01-16 13:43:58 |
| Message-ID: | E1tYQAA-001vSZ-2c@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)universality(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CACJufxHitd5LGLBSSAPShhtDWxT0ViVKTHinkYW-skBX93TcpA(at)mail(dot)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dean Rasheed | 2025-01-16 14:59:28 | pgsql: Add OLD/NEW support to RETURNING in DML queries. |
| Previous Message | Peter Eisentraut | 2025-01-16 12:32:40 | pgsql: refactor: split ATExecAlterConstrRecurse() |