Commit c0ac38d0 authored by Bruce Momjian's avatar Bruce Momjian

Log queries for client-side prepare/execute. Simon Riggs

Log prepare query during execute.  Bruce Momjian
parent f534820d
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Copyright (c) 2002-2005, PostgreSQL Global Development Group * Copyright (c) 2002-2005, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.36 2005/01/01 05:43:06 momjian Exp $ * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.37 2005/05/24 04:18:04 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -104,9 +104,12 @@ PrepareQuery(PrepareStmt *stmt) ...@@ -104,9 +104,12 @@ PrepareQuery(PrepareStmt *stmt)
/* Generate plans for queries. Snapshot is already set. */ /* Generate plans for queries. Snapshot is already set. */
plan_list = pg_plan_queries(query_list, NULL, false); plan_list = pg_plan_queries(query_list, NULL, false);
/* Save the results. */ /*
* Save the results. We don't have the query string for this PREPARE,
* but we do have the string we got from the client, so use that.
*/
StorePreparedStatement(stmt->name, StorePreparedStatement(stmt->name,
NULL, /* text form not available */ debug_query_string,
commandTag, commandTag,
query_list, query_list,
plan_list, plan_list,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment