|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Functions | |
| void | PerformCursorOpen (ParseState *pstate, DeclareCursorStmt *cstmt, ParamListInfo params, bool isTopLevel) |
| void | PerformPortalFetch (FetchStmt *stmt, DestReceiver *dest, QueryCompletion *qc) |
| void | PerformPortalClose (const char *name) |
| void | PortalCleanup (Portal portal) |
| void | PersistHoldablePortal (Portal portal) |
|
extern |
Definition at line 45 of file portalcmds.c.
References Assert, castNode, CMD_SELECT, Query::commandType, copyObject, copyParamList(), CreatePortal(), CURSOR_OPT_HOLD, CURSOR_OPT_NO_SCROLL, CURSOR_OPT_SCROLL, PortalData::cursorOptions, elog, ereport, errcode(), errmsg(), ERROR, ExecSupportsBackwardScan(), fb(), GetActiveSnapshot(), InSecurityRestrictedOperation(), IsQueryIdEnabled(), JumbleQuery(), linitial_node, list_length(), list_make1, MemoryContextSwitchTo(), NIL, ParseState::p_sourcetext, pg_plan_query(), plan, PORTAL_ONE_SELECT, PortalData::portalContext, PortalDefineQuery(), PortalStart(), post_parse_analyze_hook, pstrdup(), QueryRewrite(), RequireTransactionBlock(), and PortalData::strategy.
Referenced by standard_ProcessUtility().
Definition at line 225 of file portalcmds.c.
References ereport, errcode(), errmsg(), ERROR, fb(), GetPortalByName(), name, PortalDrop(), PortalHashTableDeleteAll(), and PortalIsValid.
Referenced by standard_ProcessUtility().
|
extern |
Definition at line 178 of file portalcmds.c.
References ereport, errcode(), errmsg(), ERROR, fb(), GetPortalByName(), None_Receiver, PortalIsValid, PortalRunFetch(), SetQueryCompletion(), and stmt.
Referenced by standard_ProcessUtility().
Definition at line 327 of file portalcmds.c.
References ActivePortal, Assert, PortalData::atEnd, CreateDestReceiver(), PortalData::createSubid, CreateTupleDescCopy(), CurrentResourceOwner, CURSOR_OPT_SCROLL, PortalData::cursorOptions, QueryDesc::dest, DestTuplestore, elog, ERROR, ExecutorEnd(), ExecutorFinish(), ExecutorRewind(), ExecutorRun(), fb(), ForwardScanDirection, FreeQueryDesc(), PortalData::holdContext, PortalData::holdSnapshot, PortalData::holdStore, InvalidSubTransactionId, MarkPortalActive(), MarkPortalFailed(), MemoryContextDeleteChildren(), MemoryContextSwitchTo(), NoMovementScanDirection, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PopActiveSnapshot(), PORTAL_READY, PortalContext, PortalData::portalContext, PortalData::portalPos, PushActiveSnapshot(), PortalData::queryDesc, _DestReceiver::rDestroy, PortalData::resowner, SetTuplestoreDestReceiverParams(), QueryDesc::snapshot, PortalData::status, PortalData::tupDesc, tuplestore_rescan(), and tuplestore_skiptuples().
Referenced by HoldPortal().
Definition at line 274 of file portalcmds.c.
References Assert, PortalData::cleanup, CurrentResourceOwner, ExecutorEnd(), ExecutorFinish(), fb(), FreeQueryDesc(), PORTAL_FAILED, PortalCleanup(), PortalIsValid, PortalData::queryDesc, PortalData::resowner, and PortalData::status.
Referenced by CreatePortal(), and PortalCleanup().