MCPcopy Create free account
hub / github.com/apache/cloudberry / GetIntoRelEFlags

Function GetIntoRelEFlags

src/backend/commands/createas.c:767–776  ·  view source on GitHub ↗

* GetIntoRelEFlags --- compute executor flags needed for CREATE TABLE AS * * This is exported because EXPLAIN and PREPARE need it too. (Note: those * callers still need to deal explicitly with the skipData flag; since they * use different methods for suppressing execution, it doesn't seem worth * trying to encapsulate that part.) */

Source from the content-addressed store, hash-verified

765 * trying to encapsulate that part.)
766 */
767int
768GetIntoRelEFlags(IntoClause *intoClause)
769{
770 int flags = 0;
771
772 if (intoClause->skipData)
773 flags |= EXEC_FLAG_WITH_NO_DATA;
774
775 return flags;
776}
777
778/*
779 * CreateTableAsRelExists --- check existence of relation for CreateTableAsStmt

Callers 4

ProcessQueryFunction · 0.85
ExecCreateTableAsFunction · 0.85
ExecuteQueryFunction · 0.85
ExplainOnePlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected