aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 14a3f9891a9..ffe6388a23b 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -2523,9 +2523,8 @@ fetch_more_data(ForeignScanState *node)
for (i = 0; i < numrows; i++)
{
- ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan;
+ Assert(IsA(node->ss.ps.plan, ForeignScan));
- Assert(IsA(fsplan, ForeignScan));
fsstate->tuples[i] =
make_tuple_from_result_row(res, i,
fsstate->rel,