• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision7342e2765e54620424c64b9075b85a1128f9367d (tree)
Time2014-01-20 16:10:51
AuthorTakashi Suzuki <suzuki.takashi@metr...>
CommiterTakashi Suzuki

Log Message

pg_stat_statementsから流用している関数を更新した。

Change Summary

Incremental Difference

--- a/normalize_query.h
+++ b/normalize_query.h
@@ -6,7 +6,7 @@
66 * This header file is created from pg_stat_statements.c to implement
77 * normalization of query string.
88 *
9- * Portions Copyright (c) 2008-2013, PostgreSQL Global Development Group
9+ * Portions Copyright (c) 2008-2014, PostgreSQL Global Development Group
1010 */
1111 #ifndef NORMALIZE_QUERY_H
1212 #define NORMALIZE_QUERY_H
--- a/pg_stat_statements.c
+++ b/pg_stat_statements.c
@@ -34,7 +34,7 @@
3434 * disappear!) and also take the entry's mutex spinlock.
3535 *
3636 *
37- * Copyright (c) 2008-2013, PostgreSQL Global Development Group
37+ * Copyright (c) 2008-2014, PostgreSQL Global Development Group
3838 *
3939 * IDENTIFICATION
4040 * contrib/pg_stat_statements/pg_stat_statements.c
@@ -245,8 +245,8 @@ static void pgss_ExecutorRun(QueryDesc *queryDesc,
245245 long count);
246246 static void pgss_ExecutorFinish(QueryDesc *queryDesc);
247247 static void pgss_ExecutorEnd(QueryDesc *queryDesc);
248-static void pgss_ProcessUtility(Node *parsetree, const char *queryString,
249- ProcessUtilityContext context, ParamListInfo params,
248+static void pgss_ProcessUtility(Node *parsetree,
249+ const char *queryString, ParamListInfo params, bool isTopLevel,
250250 DestReceiver *dest, char *completionTag);
251251 static uint32 pgss_hash_fn(const void *key, Size keysize);
252252 static int pgss_match_fn(const void *key1, const void *key2, Size keysize);
@@ -797,7 +797,7 @@ pgss_ExecutorEnd(QueryDesc *queryDesc)
797797 */
798798 static void
799799 pgss_ProcessUtility(Node *parsetree, const char *queryString,
800- ProcessUtilityContext context, ParamListInfo params,
800+ ParamListInfo params, bool isTopLevel,
801801 DestReceiver *dest, char *completionTag)
802802 {
803803 /*
@@ -830,13 +830,11 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
830830 PG_TRY();
831831 {
832832 if (prev_ProcessUtility)
833- prev_ProcessUtility(parsetree, queryString,
834- context, params,
835- dest, completionTag);
833+ prev_ProcessUtility(parsetree, queryString, params,
834+ isTopLevel, dest, completionTag);
836835 else
837- standard_ProcessUtility(parsetree, queryString,
838- context, params,
839- dest, completionTag);
836+ standard_ProcessUtility(parsetree, queryString, params,
837+ isTopLevel, dest, completionTag);
840838 nested_level--;
841839 }
842840 PG_CATCH();
@@ -893,13 +891,11 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
893891 else
894892 {
895893 if (prev_ProcessUtility)
896- prev_ProcessUtility(parsetree, queryString,
897- context, params,
898- dest, completionTag);
894+ prev_ProcessUtility(parsetree, queryString, params,
895+ isTopLevel, dest, completionTag);
899896 else
900- standard_ProcessUtility(parsetree, queryString,
901- context, params,
902- dest, completionTag);
897+ standard_ProcessUtility(parsetree, queryString, params,
898+ isTopLevel, dest, completionTag);
903899 }
904900 }
905901
@@ -2143,4 +2139,3 @@ comp_location(const void *a, const void *b)
21432139 else
21442140 return 0;
21452141 }
2146-
Show on old repository browser