From 80198ecd1572f85be4d17b0f43f0693739769e81 Mon Sep 17 00:00:00 2001 From: Tomas Vondra Date: Mon, 21 Aug 2017 12:14:43 +0200 Subject: [PATCH] Cast ExecRemoteQuery parameters to (PlanState *) in contrib Commit d66ec8f444000f861fc3b35e0c65adbd74fd434c fixed ExecRemoteQuery calls by explicitly casting the parameter to (PlanState *). This commit does the same thing for calls in stormstats contrib module. --- contrib/stormstats/stormstats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/stormstats/stormstats.c b/contrib/stormstats/stormstats.c index 12af8ab3ca..72c7150fb0 100644 --- a/contrib/stormstats/stormstats.c +++ b/contrib/stormstats/stormstats.c @@ -686,7 +686,7 @@ storm_gather_remote_coord_info(Oid funcid) node = ExecInitRemoteQuery(step, estate, 0); MemoryContextSwitchTo(oldcontext); /* get ready to combine results */ - result = ExecRemoteQuery(node); + result = ExecRemoteQuery((PlanState *) node); while (result != NULL && !TupIsNull(result)) { Datum value; @@ -743,7 +743,7 @@ storm_gather_remote_coord_info(Oid funcid) entry->counters.ddl_cnt += DatumGetInt64(value); /* fetch next */ - result = ExecRemoteQuery(node); + result = ExecRemoteQuery((PlanState *) node); } ExecEndRemoteQuery(node); -- 2.39.5