pgsql: Remove useless asserts in report_namespace_conflict()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless asserts in report_namespace_conflict()
Date: 2026-01-18 07:17:07
Message-ID: E1vhN22-0018LD-2i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove useless asserts in report_namespace_conflict()

An assertion is used in this routine to check that a valid namespace OID
is given by the caller, but it was repeated twice: once at the top of
the routine and a second time multiple times in a switch/case. This
commit removes the assertions within the switch/case.

Thinko in commit 765cbfdc9263.

Author: Man Zeng <zengman(at)halodbtech(dot)com>
Reviewed-by: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Discussion: https://postgr.es/m/tencent_40F8C1D82E2EE28065009AAA@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a6ce34b55e1cbb16a507c2e90c626eef71018b7

Modified Files
--------------
src/backend/commands/alter.c | 6 ------
1 file changed, 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-01-18 08:25:30 pgsql: Fix error message related to end TLI in backup manifest
Previous Message Peter Eisentraut 2026-01-17 05:26:59 Re: pgsql: Enable Python Limited API for PL/Python on MSVC