PostgreSQL Source Code git master
|
#include "catalog/objectaddress.h"
#include "nodes/params.h"
#include "parser/parse_node.h"
#include "tcop/dest.h"
#include "utils/queryenvironment.h"
Go to the source code of this file.
Functions | |
ObjectAddress | ExecCreateTableAs (ParseState *pstate, CreateTableAsStmt *stmt, ParamListInfo params, QueryEnvironment *queryEnv, QueryCompletion *qc) |
int | GetIntoRelEFlags (IntoClause *intoClause) |
DestReceiver * | CreateIntoRelDestReceiver (IntoClause *intoClause) |
bool | CreateTableAsRelExists (CreateTableAsStmt *ctas) |
DestReceiver * CreateIntoRelDestReceiver | ( | IntoClause * | intoClause | ) |
Definition at line 438 of file createas.c.
References DestIntoRel, DR_intorel::into, intorel_destroy(), intorel_receive(), intorel_shutdown(), intorel_startup(), _DestReceiver::mydest, palloc0(), DR_intorel::pub, _DestReceiver::rDestroy, _DestReceiver::receiveSlot, _DestReceiver::rShutdown, and _DestReceiver::rStartup.
Referenced by CreateDestReceiver(), ExecCreateTableAs(), and ExplainOnePlan().
bool CreateTableAsRelExists | ( | CreateTableAsStmt * | ctas | ) |
Definition at line 391 of file createas.c.
References checkMembershipInCurrentExtension(), ereport, errcode(), errmsg(), ERROR, get_relname_relid(), CreateTableAsStmt::if_not_exists, CreateTableAsStmt::into, NOTICE, nspid, ObjectAddressSet, OidIsValid, RangeVarGetCreationNamespace(), IntoClause::rel, and RangeVar::relname.
Referenced by ExecCreateTableAs(), and ExplainOneUtility().
ObjectAddress ExecCreateTableAs | ( | ParseState * | pstate, |
CreateTableAsStmt * | stmt, | ||
ParamListInfo | params, | ||
QueryEnvironment * | queryEnv, | ||
QueryCompletion * | qc | ||
) |
Definition at line 221 of file createas.c.
References Assert, castNode, CMD_SELECT, CMD_UTILITY, Query::commandType, create_ctas_nodata(), CreateIntoRelDestReceiver(), CreateQueryDesc(), CreateTableAsRelExists(), CURSOR_OPT_PARALLEL_OK, generate_unaccent_rules::dest, elog, ERROR, EState::es_processed, QueryDesc::estate, ExecuteQuery(), ExecutorEnd(), ExecutorFinish(), ExecutorRun(), ExecutorStart(), ForwardScanDirection, FreeQueryDesc(), GetActiveSnapshot(), GetIntoRelEFlags(), InvalidObjectAddress, InvalidSnapshot, IsA, IsQueryIdEnabled(), JumbleQuery(), linitial_node, list_length(), ObjectAddress::objectId, ParseState::p_sourcetext, pg_plan_query(), plan, PopActiveSnapshot(), post_parse_analyze_hook, PushCopiedSnapshot(), QueryRewrite(), RefreshMatViewByOid(), SetQueryCompletion(), IntoClause::skipData, stmt, Query::targetList, UpdateActiveSnapshotCommandId(), and Query::utilityStmt.
Referenced by ProcessUtilitySlow().
int GetIntoRelEFlags | ( | IntoClause * | intoClause | ) |
Definition at line 373 of file createas.c.
References EXEC_FLAG_WITH_NO_DATA, and IntoClause::skipData.
Referenced by ExecCreateTableAs(), ExecuteQuery(), and ExplainOnePlan().