mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
This commit is contained in:
@ -3134,7 +3134,7 @@ StoreCatalogInheritance(Oid relationId, List *supers,
|
||||
/*
|
||||
* sanity checks
|
||||
*/
|
||||
AssertArg(OidIsValid(relationId));
|
||||
Assert(OidIsValid(relationId));
|
||||
|
||||
if (supers == NIL)
|
||||
return;
|
||||
@ -3651,7 +3651,7 @@ rename_constraint_internal(Oid myrelid,
|
||||
Form_pg_constraint con;
|
||||
ObjectAddress address;
|
||||
|
||||
AssertArg(!myrelid || !mytypid);
|
||||
Assert(!myrelid || !mytypid);
|
||||
|
||||
if (mytypid)
|
||||
{
|
||||
@ -9731,7 +9731,7 @@ addFkRecurseReferencing(List **wqueue, Constraint *fkconstraint, Relation rel,
|
||||
Oid insertTriggerOid,
|
||||
updateTriggerOid;
|
||||
|
||||
AssertArg(OidIsValid(parentConstr));
|
||||
Assert(OidIsValid(parentConstr));
|
||||
|
||||
if (rel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
|
||||
ereport(ERROR,
|
||||
|
Reference in New Issue
Block a user