2
0

createas.h 989 B

12345678910111213141516171819202122232425262728293031323334
  1. /*-------------------------------------------------------------------------
  2. *
  3. * createas.h
  4. * prototypes for createas.c.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, 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. #include "catalog/objectaddress.h"
  17. #include "nodes/params.h"
  18. #include "parser/parse_node.h"
  19. #include "tcop/dest.h"
  20. #include "utils/queryenvironment.h"
  21. extern ObjectAddress ExecCreateTableAs(ParseState *pstate, CreateTableAsStmt *stmt,
  22. ParamListInfo params, QueryEnvironment *queryEnv,
  23. QueryCompletion *qc);
  24. extern int GetIntoRelEFlags(IntoClause *intoClause);
  25. extern DestReceiver *CreateIntoRelDestReceiver(IntoClause *intoClause);
  26. extern bool CreateTableAsRelExists(CreateTableAsStmt *ctas);
  27. #endif /* CREATEAS_H */