• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

firtst release


Commit MetaInfo

修訂c42d50fd967af9e056b55b0593db834a40277956 (tree)
時間2014-12-22 11:32:20
作者Kyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Log Message

Catch up the changes of pg_stat_statements.c

The change has nothing to do with pg_hint_plan but it's necessary to
catch it up in order to keep the difference minimal for the ease of
maintenance.

Change Summary

差異

--- a/pg_stat_statements.c
+++ b/pg_stat_statements.c
@@ -82,7 +82,6 @@
8282 #include "utils/builtins.h"
8383 #include "utils/memutils.h"
8484
85-
8685 PG_MODULE_MAGIC;
8786
8887 /* Location of permanent stats file (valid when database is shut down) */
@@ -965,10 +964,13 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
965964 * calculated from the query tree) would be used to accumulate costs of
966965 * ensuing EXECUTEs. This would be confusing, and inconsistent with other
967966 * cases where planning time is not included at all.
967+ *
968+ * Likewise, we don't track execution of DEALLOCATE.
968969 */
969970 if (pgss_track_utility && pgss_enabled() &&
970971 !IsA(parsetree, ExecuteStmt) &&
971- !IsA(parsetree, PrepareStmt))
972+ !IsA(parsetree, PrepareStmt) &&
973+ !IsA(parsetree, DeallocateStmt))
972974 {
973975 instr_time start;
974976 instr_time duration;
@@ -2407,6 +2409,7 @@ JumbleExpr(pgssJumbleState *jstate, Node *node)
24072409 SubLink *sublink = (SubLink *) node;
24082410
24092411 APP_JUMB(sublink->subLinkType);
2412+ APP_JUMB(sublink->subLinkId);
24102413 JumbleExpr(jstate, (Node *) sublink->testexpr);
24112414 JumbleQuery(jstate, (Query *) sublink->subselect);
24122415 }