mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Include planning time in EXPLAIN ANALYZE output.
This doesn't work for prepared queries, but it's not too easy to get the information in that case and there's some debate as to exactly what the right thing to measure is, so just do this for now. Andreas Karlsson, with slight doc changes by me.
This commit is contained in:
@ -665,7 +665,7 @@ ExplainExecuteQuery(ExecuteStmt *execstmt, IntoClause *into, ExplainState *es,
|
||||
PlannedStmt *pstmt = (PlannedStmt *) lfirst(p);
|
||||
|
||||
if (IsA(pstmt, PlannedStmt))
|
||||
ExplainOnePlan(pstmt, into, es, query_string, paramLI);
|
||||
ExplainOnePlan(pstmt, into, es, query_string, paramLI, NULL);
|
||||
else
|
||||
ExplainOneUtility((Node *) pstmt, into, es, query_string, paramLI);
|
||||
|
||||
|
Reference in New Issue
Block a user