1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

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

Log prepare query during execute.  Bruce Momjian
This commit is contained in:
Bruce Momjian
2005-05-24 04:18:04 +00:00
parent f534820d4d
commit c0ac38d082
2 changed files with 176 additions and 70 deletions

View File

@ -10,7 +10,7 @@
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
* 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)
/* Generate plans for queries. Snapshot is already set. */
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,
NULL, /* text form not available */
debug_query_string,
commandTag,
query_list,
plan_list,