OSDN Git Service

Fix definition of is_dummy_rel based on changes in community
[pghintplan/pg_hint_plan.git] / normalize_query.h
index d197de9..9929056 100644 (file)
@@ -6,7 +6,7 @@
  * This header file is created from pg_stat_statements.c to implement
  * normalization of query string.
  *
- * Portions Copyright (c) 2008-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 2008-2019, PostgreSQL Global Development Group
  */
 #ifndef NORMALIZE_QUERY_H
 #define NORMALIZE_QUERY_H
@@ -40,11 +40,14 @@ typedef struct pgssJumbleState
 
        /* Current number of valid entries in clocations array */
        int                     clocations_count;
+
+       /* highest Param id we've seen, in order to start normalization correctly */
+       int                     highest_extern_param_id;
 } pgssJumbleState;
 
 static char *
 generate_normalized_query(pgssJumbleState *jstate, const char *query,
-                                                 int *query_len_p, int encoding);
+                                                 int query_loc, int *query_len_p, int encoding);
 static void JumbleQuery(pgssJumbleState *jstate, Query *query);
 
 #define JUMBLE_SIZE            1024