]> granicus.if.org Git - postgresql/commitdiff
Try to fix breakage of sepgsql hooks by ENR patch.
authorKevin Grittner <kgrittn@postgresql.org>
Sat, 1 Apr 2017 05:10:12 +0000 (00:10 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Sat, 1 Apr 2017 05:10:12 +0000 (00:10 -0500)
Turned up by buildfarm animal rhinoceros.  Fixing blind.  Will have
to wait for next run by rhinoceros to know whether it worked.

contrib/sepgsql/hooks.c

index 93cc8debaa7e6ce6a3f9f354749e668819d2e67e..c4b978b48f2c830e3b1177b3e5dc5fb7d16edbd5 100644 (file)
@@ -22,6 +22,7 @@
 #include "miscadmin.h"
 #include "tcop/utility.h"
 #include "utils/guc.h"
+#include "utils/queryenvironment.h"
 
 #include "sepgsql.h"
 
@@ -301,6 +302,7 @@ sepgsql_utility_command(PlannedStmt *pstmt,
                                                const char *queryString,
                                                ProcessUtilityContext context,
                                                ParamListInfo params,
+                                               QueryEnvironment *queryEnv,
                                                DestReceiver *dest,
                                                char *completionTag)
 {
@@ -364,11 +366,11 @@ sepgsql_utility_command(PlannedStmt *pstmt,
 
                if (next_ProcessUtility_hook)
                        (*next_ProcessUtility_hook) (pstmt, queryString,
-                                                                                context, params,
+                                                                                context, params, queryEnv,
                                                                                 dest, completionTag);
                else
                        standard_ProcessUtility(pstmt, queryString,
-                                                                       context, params,
+                                                                       context, params, queryEnv,
                                                                        dest, completionTag);
        }
        PG_CATCH();