File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2525#include "access/sysattr.h"
2626#include "access/xact.h"
2727#include "access/xlog.h"
28- #include "catalog/namespace.h"
2928#include "catalog/pg_type.h"
3029#include "commands/copy.h"
3130#include "commands/defrem.h"
3736#include "miscadmin.h"
3837#include "optimizer/clauses.h"
3938#include "optimizer/planner.h"
40- #include "parser/parse_relation.h"
4139#include "nodes/makefuncs.h"
4240#include "rewrite/rewriteHandler.h"
4341#include "storage/fd.h"
4442#include "tcop/tcopprot.h"
45- #include "utils/acl.h"
4643#include "utils/builtins.h"
4744#include "utils/lsyscache.h"
4845#include "utils/memutils.h"
@@ -1413,7 +1410,7 @@ BeginCopy(bool is_from,
14131410 Assert (query -> utilityStmt == NULL );
14141411
14151412 /* plan the query */
1416- plan = planner (query , 0 , NULL );
1413+ plan = pg_plan_query (query , 0 , NULL );
14171414
14181415 /*
14191416 * With row level security and a user using "COPY relation TO", we
You can’t perform that action at this time.
0 commit comments