1 /*-------------------------------------------------------------------------
2  *
3  * createas.h
4  *	  prototypes for createas.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/commands/createas.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef CREATEAS_H
15 #define CREATEAS_H
16 
17 #include "catalog/objectaddress.h"
18 #include "nodes/params.h"
19 #include "nodes/parsenodes.h"
20 #include "tcop/dest.h"
21 #include "utils/queryenvironment.h"
22 
23 
24 extern ObjectAddress ExecCreateTableAs(CreateTableAsStmt *stmt, const char *queryString,
25 									   ParamListInfo params, QueryEnvironment *queryEnv, char *completionTag);
26 
27 extern int	GetIntoRelEFlags(IntoClause *intoClause);
28 
29 extern DestReceiver *CreateIntoRelDestReceiver(IntoClause *intoClause);
30 
31 #endif							/* CREATEAS_H */
32