• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Révision09bf8f7b62fa4918de109988ed85139dcb9cfbf6 (tree)
l'heure2014-12-22 11:07:09
AuteurKyotaro Horiguchi <horiguchi.kyotaro@lab....>
CommiterKyotaro Horiguchi

Message de Log

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

Modification

--- 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;
Afficher sur ancien navigateur de dépôt.