mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +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:
@@ -440,8 +440,8 @@ PortalStart(Portal portal, ParamListInfo params,
|
||||
QueryDesc *queryDesc;
|
||||
int myeflags;
|
||||
|
||||
AssertArg(PortalIsValid(portal));
|
||||
AssertState(portal->status == PORTAL_DEFINED);
|
||||
Assert(PortalIsValid(portal));
|
||||
Assert(portal->status == PORTAL_DEFINED);
|
||||
|
||||
/*
|
||||
* Set up global portal context pointers.
|
||||
@@ -694,7 +694,7 @@ PortalRun(Portal portal, long count, bool isTopLevel, bool run_once,
|
||||
MemoryContext savePortalContext;
|
||||
MemoryContext saveMemoryContext;
|
||||
|
||||
AssertArg(PortalIsValid(portal));
|
||||
Assert(PortalIsValid(portal));
|
||||
|
||||
TRACE_POSTGRESQL_QUERY_EXECUTE_START();
|
||||
|
||||
@@ -1399,7 +1399,7 @@ PortalRunFetch(Portal portal,
|
||||
MemoryContext savePortalContext;
|
||||
MemoryContext oldContext;
|
||||
|
||||
AssertArg(PortalIsValid(portal));
|
||||
Assert(PortalIsValid(portal));
|
||||
|
||||
/*
|
||||
* Check for improper portal use, and mark portal active.
|
||||
|
||||
Reference in New Issue
Block a user