diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-12-16 17:43:41 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-01-09 13:47:56 -0500 |
commit | a77dd53f3089a3d6bf74966bfd3ab7e27537183b (patch) | |
tree | 8d841865fad219438a8712d9552f4cdf09459c4c /src/backend/executor/execCurrent.c | |
parent | 0f7c49e85518dd846ccd0a044d49a922b9132983 (diff) | |
download | postgresql-a77dd53f3089a3d6bf74966bfd3ab7e27537183b.tar.gz postgresql-a77dd53f3089a3d6bf74966bfd3ab7e27537183b.zip |
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>
Diffstat (limited to 'src/backend/executor/execCurrent.c')
-rw-r--r-- | src/backend/executor/execCurrent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/execCurrent.c b/src/backend/executor/execCurrent.c index 6a8db582dba..ce7d4ac592a 100644 --- a/src/backend/executor/execCurrent.c +++ b/src/backend/executor/execCurrent.c @@ -75,7 +75,7 @@ execCurrentOf(CurrentOfExpr *cexpr, (errcode(ERRCODE_INVALID_CURSOR_STATE), errmsg("cursor \"%s\" is not a SELECT query", cursor_name))); - queryDesc = PortalGetQueryDesc(portal); + queryDesc = portal->queryDesc; if (queryDesc == NULL || queryDesc->estate == NULL) ereport(ERROR, (errcode(ERRCODE_INVALID_CURSOR_STATE), |