File tree 4 files changed +5
-10
lines changed
4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ PortalCleanup(Portal portal)
277
277
* since other mechanisms will take care of releasing executor resources,
278
278
* and we can't be sure that ExecutorEnd itself wouldn't fail.
279
279
*/
280
- queryDesc = PortalGetQueryDesc ( portal ) ;
280
+ queryDesc = portal -> queryDesc ;
281
281
if (queryDesc )
282
282
{
283
283
/*
@@ -317,7 +317,7 @@ PortalCleanup(Portal portal)
317
317
void
318
318
PersistHoldablePortal (Portal portal )
319
319
{
320
- QueryDesc * queryDesc = PortalGetQueryDesc ( portal ) ;
320
+ QueryDesc * queryDesc = portal -> queryDesc ;
321
321
Portal saveActivePortal ;
322
322
ResourceOwner saveResourceOwner ;
323
323
MemoryContext savePortalContext ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ execCurrentOf(CurrentOfExpr *cexpr,
75
75
(errcode (ERRCODE_INVALID_CURSOR_STATE ),
76
76
errmsg ("cursor \"%s\" is not a SELECT query" ,
77
77
cursor_name )));
78
- queryDesc = PortalGetQueryDesc ( portal ) ;
78
+ queryDesc = portal -> queryDesc ;
79
79
if (queryDesc == NULL || queryDesc -> estate == NULL )
80
80
ereport (ERROR ,
81
81
(errcode (ERRCODE_INVALID_CURSOR_STATE ),
Original file line number Diff line number Diff line change @@ -885,7 +885,7 @@ PortalRunSelect(Portal portal,
885
885
* NB: queryDesc will be NULL if we are fetching from a held cursor or a
886
886
* completed utility query; can't use it in that path.
887
887
*/
888
- queryDesc = PortalGetQueryDesc ( portal ) ;
888
+ queryDesc = portal -> queryDesc ;
889
889
890
890
/* Caller messed up if we have neither a ready query nor held data. */
891
891
Assert (queryDesc || portal -> holdStore );
@@ -1694,7 +1694,7 @@ DoPortalRewind(Portal portal)
1694
1694
}
1695
1695
1696
1696
/* Rewind executor, if active */
1697
- queryDesc = PortalGetQueryDesc ( portal ) ;
1697
+ queryDesc = portal -> queryDesc ;
1698
1698
if (queryDesc )
1699
1699
{
1700
1700
PushActiveSnapshot (queryDesc -> snapshot );
Original file line number Diff line number Diff line change @@ -198,11 +198,6 @@ typedef struct PortalData
198
198
*/
199
199
#define PortalIsValid (p ) PointerIsValid(p)
200
200
201
- /*
202
- * Access macros for Portal ... use these in preference to field access.
203
- */
204
- #define PortalGetQueryDesc (portal ) ((portal)->queryDesc)
205
-
206
201
207
202
/* Prototypes for functions in utils/mmgr/portalmem.c */
208
203
extern void EnablePortalManager (void );
You can’t perform that action at this time.
0 commit comments