OSDN Git Service
(root)
/
pgstoreplans
/
pg_store_plans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b78ab
)
Move misplaced comment.
author
Julien Rouhaud
<julien.rouhaud@free.fr>
Sat, 6 Nov 2021 06:38:45 +0000
(14:38 +0800)
committer
Kyotaro Horiguchi
<horikyota.ntt@gmail.com>
Thu, 25 Nov 2021 10:37:02 +0000
(19:37 +0900)
pg_store_plans.c
patch
|
blob
|
history
diff --git
a/pg_store_plans.c
b/pg_store_plans.c
index
4023fcb
..
8c4f693
100644
(file)
--- a/
pg_store_plans.c
+++ b/
pg_store_plans.c
@@
-782,6
+782,10
@@
pgsp_ExecutorEnd(QueryDesc *queryDesc)
{
if (queryDesc->totaltime)
{
+ /*
+ * Make sure stats accumulation is done. (Note: it's okay if several
+ * levels of hook all do this.)
+ */
InstrEndLoop(queryDesc->totaltime);
if (pgsp_enabled() &&
@@
-811,11
+815,6
@@
pgsp_ExecutorEnd(QueryDesc *queryDesc)
es_str->data[0] = '{';
es_str->data[es_str->len - 1] = '}';
- /*
- * Make sure stats accumulation is done. (Note: it's okay if several
- * levels of hook all do this.)
- */
-
store_entry(es_str->data,
hash_query(queryDesc->sourceText),
queryDesc->plannedstmt->queryId,