Make sure ExecRemoteQuery is called with (PlanState *) parameter
authorTomas Vondra <[email protected]>
Mon, 21 Aug 2017 08:17:07 +0000 (10:17 +0200)
committerTomas Vondra <[email protected]>
Mon, 21 Aug 2017 09:03:16 +0000 (11:03 +0200)
commitd66ec8f444000f861fc3b35e0c65adbd74fd434c
tree75c4782505a8cfb6b03b42d470ce880130459bd9
parent28147bfd19da345621f209cb5b5065422d8f5926
Make sure ExecRemoteQuery is called with (PlanState *) parameter

gcc 6.4.1 is complaining when ExecRemoteQuery(PlanState *) gets called
with (RemoteSubqueryState*) parameter. This commit adds explicit cast on
a few places to silence the warnings noise.

An alternative fix might be to use (RemoteSubqueryState*), but that does
not quite work as ResponseCombiner needs to keep a pointer to either
ExecRemoteQuery or ExecRemoteSubplan. So the explicit cast seems better.
src/backend/commands/analyze.c
src/backend/commands/explain.c
src/backend/commands/vacuum.c
src/backend/utils/adt/dbsize.c