From: Teodor Sigaev Date: Tue, 10 Sep 2013 08:31:55 +0000 (+0400) Subject: support of 9.3.0 X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=d24a5d10445ad6160b72663f3b81acc3c80f24a6;p=online_analyze.git support of 9.3.0 --- 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);