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 430 of file createas.c.
References DestIntoRel, intorel_destroy(), intorel_receive(), intorel_shutdown(), intorel_startup(), and palloc0().
Referenced by CreateDestReceiver(), ExecCreateTableAs(), and ExplainOnePlan().
bool CreateTableAsRelExists | ( | CreateTableAsStmt * | ctas | ) |
Definition at line 383 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, linitial_node, list_length(), ObjectAddress::objectId, ParseState::p_sourcetext, pg_plan_query(), plan, PopActiveSnapshot(), PushCopiedSnapshot(), QueryRewrite(), RefreshMatViewByOid(), SetQueryCompletion(), IntoClause::skipData, stmt, Query::targetList, UpdateActiveSnapshotCommandId(), and Query::utilityStmt.
Referenced by ProcessUtilitySlow().
int GetIntoRelEFlags | ( | IntoClause * | intoClause | ) |
Definition at line 365 of file createas.c.
References EXEC_FLAG_WITH_NO_DATA, and IntoClause::skipData.
Referenced by ExecCreateTableAs(), ExecuteQuery(), and ExplainOnePlan().