mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Remove PortalGetQueryDesc()
After having gotten rid of PortalGetHeapMemory(), there seems little reason to keep one Portal access macro around that offers no actual abstraction and isn't consistently used anyway. Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
This commit is contained in:
@@ -885,7 +885,7 @@ PortalRunSelect(Portal portal,
|
||||
* NB: queryDesc will be NULL if we are fetching from a held cursor or a
|
||||
* completed utility query; can't use it in that path.
|
||||
*/
|
||||
queryDesc = PortalGetQueryDesc(portal);
|
||||
queryDesc = portal->queryDesc;
|
||||
|
||||
/* Caller messed up if we have neither a ready query nor held data. */
|
||||
Assert(queryDesc || portal->holdStore);
|
||||
@@ -1694,7 +1694,7 @@ DoPortalRewind(Portal portal)
|
||||
}
|
||||
|
||||
/* Rewind executor, if active */
|
||||
queryDesc = PortalGetQueryDesc(portal);
|
||||
queryDesc = portal->queryDesc;
|
||||
if (queryDesc)
|
||||
{
|
||||
PushActiveSnapshot(queryDesc->snapshot);
|
||||
|
Reference in New Issue
Block a user