diff options
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/copy.c | 4 | ||||
-rw-r--r-- | src/backend/commands/explain.c | 12 | ||||
-rw-r--r-- | src/backend/commands/portalcmds.c | 4 | ||||
-rw-r--r-- | src/backend/commands/prepare.c | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 99d347f5907..42121f3fe45 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.279 2007/03/29 00:15:38 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.280 2007/04/16 01:14:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1023,7 +1023,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString) errmsg("COPY (SELECT INTO) is not supported"))); /* plan the query */ - plan = planner(query, false, 0, NULL); + plan = planner(query, 0, NULL); /* * Update snapshot command ID to ensure this query sees results of any diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 1b2cfccce9f..bb7d4303598 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994-5, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.160 2007/03/13 00:33:39 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.161 2007/04/16 01:14:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -42,7 +42,7 @@ typedef struct ExplainState List *rtable; /* range table */ } ExplainState; -static void ExplainOneQuery(Query *query, bool isCursor, int cursorOptions, +static void ExplainOneQuery(Query *query, int cursorOptions, ExplainStmt *stmt, const char *queryString, ParamListInfo params, TupOutputState *tstate); static double elapsed_time(instr_time *starttime); @@ -102,7 +102,7 @@ ExplainQuery(ExplainStmt *stmt, const char *queryString, /* Explain every plan */ foreach(l, rewritten) { - ExplainOneQuery((Query *) lfirst(l), false, 0, + ExplainOneQuery((Query *) lfirst(l), 0, stmt, queryString, params, tstate); /* put a blank line between plans */ if (lnext(l) != NULL) @@ -134,7 +134,7 @@ ExplainResultDesc(ExplainStmt *stmt) * print out the execution plan for one Query */ static void -ExplainOneQuery(Query *query, bool isCursor, int cursorOptions, +ExplainOneQuery(Query *query, int cursorOptions, ExplainStmt *stmt, const char *queryString, ParamListInfo params, TupOutputState *tstate) { @@ -150,7 +150,7 @@ ExplainOneQuery(Query *query, bool isCursor, int cursorOptions, } /* plan the query */ - plan = planner(query, isCursor, cursorOptions, params); + plan = planner(query, cursorOptions, params); /* * Update snapshot command ID to ensure this query sees results of any @@ -229,7 +229,7 @@ ExplainOneUtility(Node *utilityStmt, ExplainStmt *stmt, /* do not actually execute the underlying query! */ memcpy(&newstmt, stmt, sizeof(ExplainStmt)); newstmt.analyze = false; - ExplainOneQuery(query, true, dcstmt->options, &newstmt, + ExplainOneQuery(query, dcstmt->options, &newstmt, queryString, params, tstate); } else if (IsA(utilityStmt, ExecuteStmt)) diff --git a/src/backend/commands/portalcmds.c b/src/backend/commands/portalcmds.c index d759ed4ac2d..eb381ebb705 100644 --- a/src/backend/commands/portalcmds.c +++ b/src/backend/commands/portalcmds.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.63 2007/04/12 06:53:46 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.64 2007/04/16 01:14:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -111,7 +111,7 @@ PerformCursorOpen(DeclareCursorStmt *stmt, ParamListInfo params, errdetail("Cursors must be READ ONLY."))); /* plan the query */ - plan = planner(query, true, stmt->options, params); + plan = planner(query, stmt->options, params); /* * Create a portal and copy the plan into its memory context. diff --git a/src/backend/commands/prepare.c b/src/backend/commands/prepare.c index fe1a8532f07..9a4f88d1a0b 100644 --- a/src/backend/commands/prepare.c +++ b/src/backend/commands/prepare.c @@ -10,7 +10,7 @@ * Copyright (c) 2002-2007, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.71 2007/04/12 06:53:46 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.72 2007/04/16 01:14:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -160,7 +160,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString) query_list = QueryRewrite(query); /* Generate plans for queries. Snapshot is already set. */ - plan_list = pg_plan_queries(query_list, NULL, false); + plan_list = pg_plan_queries(query_list, 0, NULL, false); /* * Save the results. |