support v13
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 15 Jun 2020 20:49:45 +0000 (23:49 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 15 Jun 2020 20:49:45 +0000 (23:49 +0300)
online_analyze.c

index 58ac74f..b53ff83 100644 (file)
@@ -55,6 +55,9 @@
 #if PG_VERSION_NUM >= 100000
 #include "utils/varlena.h"
 #include "utils/regproc.h"
+#if PG_VERSION_NUM >= 130000
+#include "common/hashfn.h"
+#endif
 #endif
 #endif
 #endif
@@ -848,7 +851,13 @@ onlineAnalyzeHookerUtility(
 #else
                                                        ParamListInfo params, bool isTopLevel,
 #endif
-                                                       DestReceiver *dest, char *completionTag) {
+                                                       DestReceiver *dest,
+#if  PG_VERSION_NUM >= 130000
+                                                       QueryCompletion *completionTag
+#else
+                                                       char *completionTag
+#endif
+) {
        List            *tblnames = NIL;
        CmdKind         op = CK_INSERT;
 #if PG_VERSION_NUM >= 100000