firtst release
修訂 | c42d50fd967af9e056b55b0593db834a40277956 (tree) |
---|---|
時間 | 2014-12-22 11:32:20 |
作者 | Kyotaro Horiguchi <horiguchi.kyotaro@lab....> |
Commiter | Kyotaro Horiguchi |
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.
@@ -82,7 +82,6 @@ | ||
82 | 82 | #include "utils/builtins.h" |
83 | 83 | #include "utils/memutils.h" |
84 | 84 | |
85 | - | |
86 | 85 | PG_MODULE_MAGIC; |
87 | 86 | |
88 | 87 | /* Location of permanent stats file (valid when database is shut down) */ |
@@ -965,10 +964,13 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString, | ||
965 | 964 | * calculated from the query tree) would be used to accumulate costs of |
966 | 965 | * ensuing EXECUTEs. This would be confusing, and inconsistent with other |
967 | 966 | * cases where planning time is not included at all. |
967 | + * | |
968 | + * Likewise, we don't track execution of DEALLOCATE. | |
968 | 969 | */ |
969 | 970 | if (pgss_track_utility && pgss_enabled() && |
970 | 971 | !IsA(parsetree, ExecuteStmt) && |
971 | - !IsA(parsetree, PrepareStmt)) | |
972 | + !IsA(parsetree, PrepareStmt) && | |
973 | + !IsA(parsetree, DeallocateStmt)) | |
972 | 974 | { |
973 | 975 | instr_time start; |
974 | 976 | instr_time duration; |
@@ -2407,6 +2409,7 @@ JumbleExpr(pgssJumbleState *jstate, Node *node) | ||
2407 | 2409 | SubLink *sublink = (SubLink *) node; |
2408 | 2410 | |
2409 | 2411 | APP_JUMB(sublink->subLinkType); |
2412 | + APP_JUMB(sublink->subLinkId); | |
2410 | 2413 | JumbleExpr(jstate, (Node *) sublink->testexpr); |
2411 | 2414 | JumbleQuery(jstate, (Query *) sublink->subselect); |
2412 | 2415 | } |