• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision09bf8f7b62fa4918de109988ed85139dcb9cfbf6 (tree)
Time2014-12-22 11:07:09
AuthorKyotaro 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

Incremental Difference

--- a/pg_stat_statements.c
+++ b/pg_stat_statements.c
@@ -965,10 +965,13 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
965965 * calculated from the query tree) would be used to accumulate costs of
966966 * ensuing EXECUTEs. This would be confusing, and inconsistent with other
967967 * cases where planning time is not included at all.
968+ *
969+ * Likewise, we don't track execution of DEALLOCATE.
968970 */
969971 if (pgss_track_utility && pgss_enabled() &&
970972 !IsA(parsetree, ExecuteStmt) &&
971- !IsA(parsetree, PrepareStmt))
973+ !IsA(parsetree, PrepareStmt) &&
974+ !IsA(parsetree, DeallocateStmt))
972975 {
973976 instr_time start;
974977 instr_time duration;
Show on old repository browser