From d24a5d10445ad6160b72663f3b81acc3c80f24a6 Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Tue, 10 Sep 2013 12:31:55 +0400 Subject: [PATCH] support of 9.3.0 --- online_analyze.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/online_analyze.c b/online_analyze.c index 7ec4eef..8f965c1 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -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); -- 2.46.1