* 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.) */
| 765 | * trying to encapsulate that part.) |
| 766 | */ |
| 767 | int |
| 768 | GetIntoRelEFlags(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 |
no outgoing calls
no test coverage detected