mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -277,7 +277,7 @@ PortalCleanup(Portal portal)
|
||||
* since other mechanisms will take care of releasing executor resources,
|
||||
* and we can't be sure that ExecutorEnd itself wouldn't fail.
|
||||
*/
|
||||
queryDesc = PortalGetQueryDesc(portal);
|
||||
queryDesc = portal->queryDesc;
|
||||
if (queryDesc)
|
||||
{
|
||||
/*
|
||||
@@ -317,7 +317,7 @@ PortalCleanup(Portal portal)
|
||||
void
|
||||
PersistHoldablePortal(Portal portal)
|
||||
{
|
||||
QueryDesc *queryDesc = PortalGetQueryDesc(portal);
|
||||
QueryDesc *queryDesc = portal->queryDesc;
|
||||
Portal saveActivePortal;
|
||||
ResourceOwner saveResourceOwner;
|
||||
MemoryContext savePortalContext;
|
||||
|
Reference in New Issue
Block a user