*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.512 2006/10/07 19:25:28 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.513 2006/10/07 20:16:57 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
PreparedStatement *pstmt;
Portal portal;
ParamListInfo params;
+ List *query_list;
List *plan_list;
MemoryContext qContext;
bool save_log_statement_stats = log_statement_stats;
qContext = PortalGetHeapMemory(portal);
oldContext = MemoryContextSwitchTo(qContext);
- plan_list = pg_plan_queries(copyObject(pstmt->query_list),
- params,
- true);
+ query_list = copyObject(pstmt->query_list);
+ plan_list = pg_plan_queries(query_list, params, true);
MemoryContextSwitchTo(oldContext);
}
else
{
+ query_list = pstmt->query_list;
plan_list = pstmt->plan_list;
qContext = pstmt->context;
}
*pstmt->stmt_name ? pstmt->stmt_name : NULL,
pstmt->query_string,
pstmt->commandTag,
- pstmt->query_list,
+ query_list,
plan_list,
qContext);