]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove useless asserts in report_namespace_conflict()
authorMichael Paquier <michael@paquier.xyz>
Sun, 18 Jan 2026 07:11:46 +0000 (16:11 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 18 Jan 2026 07:11:46 +0000 (16:11 +0900)
commit2a6ce34b55e1cbb16a507c2e90c626eef71018b7
treec0bc7a2d8f7d405fa56957b6c6b420f3d4a14acb
parent6831cd9e3b082d7b830c3196742dd49e3540c49b
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@halodbtech.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/tencent_40F8C1D82E2EE28065009AAA@qq.com
src/backend/commands/alter.c