From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove dead code
Date: Thu, 16 Jan 2025 13:43:58 +0000
Message-ID: <E1tYQAA-001vSZ-2c@gemulon.postgresql.org> (raw)
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....
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Remove dead code
In-Reply-To: <E1tYQAA-001vSZ-2c@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox