support of 9.3.0
authorTeodor Sigaev <teodor@sigaev.ru>
Tue, 10 Sep 2013 08:31:55 +0000 (12:31 +0400)
committerTeodor Sigaev <teodor@sigaev.ru>
Tue, 10 Sep 2013 08:31:55 +0000 (12:31 +0400)
online_analyze.c

index 7ec4eef..8f965c1 100644 (file)
@@ -488,8 +488,12 @@ onlineAnalyzeHooker(QueryDesc *queryDesc)
 
 #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,
+#endif
                                                        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)
-               oldProcessUtilityHook(parsetree, queryString, params, isTopLevel, dest, completionTag);
+               oldProcessUtilityHook(parsetree, queryString, 
+#if PG_VERSION_NUM >= 90300
+                                                         context, params,
+#else
+                                                         params, isTopLevel,
+#endif
+                                                         dest, completionTag);
        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);