projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9bb6f08
)
support of 9.3.0
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 10 Sep 2013 08:31:55 +0000
(12:31 +0400)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 10 Sep 2013 08:31:55 +0000
(12:31 +0400)
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
7ec4eef
..
8f965c1
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-488,8
+488,12
@@
onlineAnalyzeHooker(QueryDesc *queryDesc)
#if PG_VERSION_NUM >= 90200
static void
#if PG_VERSION_NUM >= 90200
static void
-onlineAnalyzeHookerUtility(Node *parsetree, const char *queryString,
+onlineAnalyzeHookerUtility(Node *parsetree, const char *queryString,
+#if PG_VERSION_NUM >= 90300
+ ProcessUtilityContext context, ParamListInfo params,
+#else
ParamListInfo params, bool isTopLevel,
ParamListInfo params, bool isTopLevel,
+#endif
DestReceiver *dest, char *completionTag) {
RangeVar *tblname = NULL;
DestReceiver *dest, char *completionTag) {
RangeVar *tblname = NULL;
@@
-497,9
+501,21
@@
onlineAnalyzeHookerUtility(Node *parsetree, const char *queryString,
tblname = (RangeVar*)copyObject(((CreateTableAsStmt*)parsetree)->into->rel);
if (oldProcessUtilityHook)
tblname = (RangeVar*)copyObject(((CreateTableAsStmt*)parsetree)->into->rel);
if (oldProcessUtilityHook)
- oldProcessUtilityHook(parsetree, queryString, params, isTopLevel, dest, completionTag);
+ oldProcessUtilityHook(parsetree, queryString,
+#if PG_VERSION_NUM >= 90300
+ context, params,
+#else
+ params, isTopLevel,
+#endif
+ dest, completionTag);
else
else
- standard_ProcessUtility(parsetree, queryString, params, isTopLevel, dest, completionTag);
+ standard_ProcessUtility(parsetree, queryString,
+#if PG_VERSION_NUM >= 90300
+ context, params,
+#else
+ params, isTopLevel,
+#endif
+ dest, completionTag);
if (tblname) {
Oid tblOid = RangeVarGetRelid(tblname, NoLock, true);
if (tblname) {
Oid tblOid = RangeVarGetRelid(tblname, NoLock, true);